简体   繁体   中英

Refresh Associated Domains iOS

I have universal links working in my app.

I enable the Associated Domains, upload the apple-app-site-association file, and run the app. All works as expected, the domains are registered (I'm watching via the OS log in Xcode), and I can use Open In from the Notes app to test the links.

HOWEVER. If I reboot the device (in my case iPad, iOS 10) it ceases to work. It appears to me as if the associated domains are getting un-registered/forgotten when the device shuts down.

Is there a way to refresh the associated domains on app launch?

I'm already using Branch.io, and this affects those links as well as straight universal links.

I'm guessing this is an Apple bug, and will file a radar with them. However, any workarounds would be appreciated.

We had not seen this issue at Branch when Alex wrote his comment above. We have since confirmed that this is indeed an Apple bug.

Current documentation states you need to uninstall the app every time you update Associated Domains list to apply the effect immediately. https://developer.apple.com/documentation/safariservices/supporting_associated_domains_in_your_app

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