How to create apple-app-site association file for Universal Linking in iOS 9?

I am having some problem creating an apple-app-site association file. I do not know how to create a json file without json extentsion and have a content type application/jsonfor the same file. I want to use this file without any signing, since it is not needed in iOS 9, but I could not create the apple-app-site association file file.

I installed everything in my application, for example, related domains, application delegation method, provisioning profiles.

Here is my server side code:

{
    "applinks": {
      "apps": [],
      "details": [
          {
             "appID": "teamID.bundleID",
             "paths": [ "*" ]
          }
      ]
   }
 }
+4
source share
3 answers

.htaccess . , application/json

RewriteRule ^apple-app-site-association$ - [env=apple:1]
Header set Content-type application/json env=apple

Universal Link iOS9, /json. , .

+3

:

.htaccess:

<FilesMatch "^apple-app-site-association$">
    ForceType application/json
</FilesMatch>

.

+2

cd desktop

,

apple-app-site-association

return

0
source

Source: https://habr.com/ru/post/1625486/


All Articles