Avneesh Dwivedi
Avneesh Dwivedi

Reputation: 21

iOS Universal Link not working even after it passes all validation. Do we need to test this only after app release?

I followed all the steps mentioned in App Search Programming Guide to enable Universal Link in my application, but its not working.

Steps Followed:

1) Apple app site asscoiation file is created and accessible from the web.

2) Enabled Associated Domains in the member center and generated the provisioning profile.

3) Added applinks:limeroad.com in the capabilities section of my app target.

4) Implemented -

-(BOOL)application:
 (UIApplication *)application continueUserActivity:
 (NSUserActivity *)userActivity restorationHandler:
 (void(^)(NSArray * __nullable restorableObjects))restorationHandler

5) Tried opening below links from mail app but they always open in Safari.

www.perf.limeroad.com/scrap/s56b1d03f092d275b2808c6d5

6) Tried long pressing in the link and it only shows open in safari, but not open in my app.

My app supports iOS 7 onwards. I have tested these steps with the development build as well as test flight build, but it never worked for me.

I tried four square and make my trip app and they seem to be working fine. I tried this in my iPhone 6 running iOS9.2 and iPad running iOS 9.1.

Did validation with search.developer.apple.com/appsearch-validation-tool/ and seems like things are fine here too.

Please let me know what i have missed here. Is anyone else facing the same issue?

JSON: { 
        "applinks": { 
          "apps": [], 
          "details": [ { "appID": "TB98D47W8J.com.limeroad.Limeroad",
                         "paths": ["*"] 
                       } 
                     ] 
        } 
}


App Validation :

App Validation

Xcode Applinks addition :

Xcode Applinks addition

Upvotes: 2

Views: 503

Answers (1)

user1040575
user1040575

Reputation:

Did you add these entitlements to your project.entitlements file? And after you add the entitlements to that file make sure that you include that file to the build targets.

Upvotes: 1

Related Questions