{"id":209,"date":"2017-08-03T00:50:36","date_gmt":"2017-08-03T00:50:36","guid":{"rendered":"http:\/\/redquark.com\/wp\/?p=209"},"modified":"2017-08-06T22:03:41","modified_gmt":"2017-08-06T22:03:41","slug":"universal-links-and-apples-cruelty","status":"publish","type":"post","link":"https:\/\/redquark.com\/wp\/?p=209","title":{"rendered":"Universal Links and Apple&#8217;s Cruelty"},"content":{"rendered":"<p>You may be interested in using Apple&#8217;s Universal Links. It is not <em>too<\/em> complicated, with one possible exception. Apple insists on the following:<\/p>\n<ul>\n<li>You need a file named apple-app-site-association<\/li>\n<li>The file name cannot have an extension<\/li>\n<li>The file must be of type application\/json<\/li>\n<li>The file must reside in one of two directories that are likely to have other files of other types<\/li>\n<\/ul>\n<p>The difficulty is in assigning a type of application\/json to a single file <em>without<\/em> an extension. Here is the solution for .htaccess (thanks to my elder son!) for those hosting the file on an Apache server:<\/p>\n<blockquote><p>&lt;Files apple-app-site-association&gt;<br \/>\nForceType application\/json<br \/>\n&lt;\/Files&gt;<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>You may be interested in using Apple&#8217;s Universal Links. It is not too complicated, with one possible exception. Apple insists on the following: You need a file named apple-app-site-association The file name cannot have an extension The file must be of type application\/json The file must reside in one of two directories that are likely [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-209","post","type-post","status-publish","format-standard","hentry","category-ios-developer-nanodegree"],"_links":{"self":[{"href":"https:\/\/redquark.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/redquark.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/redquark.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/redquark.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/redquark.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=209"}],"version-history":[{"count":2,"href":"https:\/\/redquark.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/209\/revisions"}],"predecessor-version":[{"id":211,"href":"https:\/\/redquark.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/209\/revisions\/211"}],"wp:attachment":[{"href":"https:\/\/redquark.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redquark.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redquark.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}