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

I have some problem in creating apple-app-site-association file.I don't know how to create json file without json extentsion and have content type application/json for the same file.I want to use this file without any signing as it doesn't need in IOS 9 but I couldn't able to create the valid apple-app-site-association file.

I have setup everything on my app like associated domains,app delegate method,provisioning profiles.

Here is my code on the backend side:

{
    "applinks": {
      "apps": [],
      "details": [
          {
             "appID": "teamID.bundleID",
             "paths": [ "*" ]
          }
      ]
   }
 }

Another method is to use file match to match exactly your file and to enforce the required content-type:

add following lines to your .htaccess file:

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

this worked for me.

App Search Programming Guide: Support Universal Links, There are three steps you need to take: Create an apple-app-site-association file that contains JSON data about the URLs that your app can handle. Upload the apple-app-site-association file to your HTTPS web server. You can place the file at the root of your server or in the . Prepare your app to handle universal links In order to register your Xcode project for Universal Links, you need to create an App ID in the Apple developer portal and enable the proper entitlements. This is very similar to the configuration required for in-app purchases. You cannot use a wildcard app identifier for Universal Links. Register your app on developers.apple.com

I added the following to the .htaccess file in the root folder. This is a bit rough, but it worked for me to return the file in application/json

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

I was not able to make Universal Link work with iOS9 serving application/json yet. Let me know if you made i work.

How to Set Up Universal Links to Deep Link on Apple iOS, If your app runs in iOS 9 or later and you use HTTPS to serve the apple-app-site- association file, you can create a plain text file that uses the� Create an apple-app-site-association file that contains JSON data about the URLs that your app can handle. Upload the apple-app-site-association file to your HTTPS web server. You can place the file at the root of your server or in the.well-known subdirectory. Prepare your app to handle universal links.

Open your terminal and type

cd desktop

press return key and then type

touch apple-app-site-association

press return

a file is created without any extension

Universal Links: Make the Connection, A technical guide to Apple's deep linking protocol for iOS9. Learn how to prepare for iOS 9 here. Create a apple-app-site-association file. The AASA file makes Universal Links unique and secure because there is no way for an indie developer to host an AASA file on the facebook.com domain. Let’s look at some basics of the apple-app-site-association file that will help you in building and hosting one on your domain.

Set Up iOS 9 Universal Links for Your App, I want to use this file without any signing as it doesn't need in IOS 9 but I couldn't able to create the valid apple-app-site-association file. I have� iOS 9 Universal Links were intended to fix this. (apple-app-site-association) file should be there in the domain which contains the bundle id of the app and the paths the app should open) for

How to create apple-app-site-association file for Universal Linking in , Universal links try to solve both of these problems, first by requiring verifiable Setup. First, register your app at developer.apple.com and make sure the The final step requires hosting an apple-app-site-association file where the of iOS earlier than 9.0, tapping a universal link to your website opens the link in Safari. Universal Links for Developers. Seamlessly link to content inside your app, or on your website in iOS 9 or later. With universal links, you can always give users the most integrated mobile experience, even when your app isn’t installed on their device.

Universal Links, When you support universal links, iOS 9 users can tap a link to your website and get The apple-app-site-association file needs to be accessible via HTTPS� The AASA Validator, formerly the Universal Links Validator, can be used to test if your website is properly configured for Universal Links. We’ll test your domain against Apple’s requirements for hosting your Apple App Site Association file along with what we have seen in production that leads to a successful implementation of Universal Links.

Comments
  • did you manage to make it work?
  • @Abilash Bansal, did u finished this creation of json file, if so, how u did that, now im facing same issue. Thanks!