简体   繁体   中英

Why don't Universal Links in iOS 9 work sometimes?

I implemented the universal links in my app, I followed this article: universal links on ios9

Yesterday everything worked, but today if I open my test app and try to open my main app with universal links, the test app just show me the safari and load my url, but it doesnt offer to open the universal link in my main app. I didnt get any errors, so I dont know what should I have to do.

Quick steps to check whether you have implemented Universal Link correctly.

  • Tap and hold on the link that you expect to launch the app. You should see a "Open in [your app name]" in the Context Menu.

  • Open Notes app, type the link you expect to open the app. Tap Done. The link will turn yellow and tapping on the link should open your app, and not Safari.

  • If the link http://yourDomain.com is not launching the app, try http://yourDomain.com/yourFolder/

  • In Safari, If the Context Menu shows "Open in [your app name]" in safari, but tapping the link opens the link in safari itself instead of launching the app,

    a. Try pulling down on the safari page that opened when the link was clicked like the way you 'pull to refresh'. A banner should appear that can open your app. Tap the banner to open the app, close the app by pressing home button, get back to safari and try launching the app by tapping the link again. This time on, the app should get launched because tapping the banner should have saved the preference to open the link in app.

    b.If the app still don't get launched after the step a., try mailing the link to a webmail such as gmail and open the webmail site in safari and try clicking the link. If this works, you may have been trying to launch the app from the same domain as the link. From what I have seen, launching the app from the same domain mostly fails. Probably safari wont care to check whether the destination url is a universal link, when the link is into the same domain. So try to launch the app from another domain.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM