UniversalLink stop working on iOS 14 devices

旧城冷巷雨未停 提交于 2021-01-26 09:23:53

问题


I have an app that support the UniversalLink. User click the supported links in the website, will be navigated to the features in the application.

But It failed to work on the iOS 14 beta 4. Instead of open the the app, it opens a webpage instread.

After research, as I can see from the document here https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_associated-domains

Need to update the Service.entitlements to support both iOS 13 and iOS 14

<Key>com.apple.developer.associated-domains</key>
  <array>
    <string>applinks:hosturl</string>
    <string>applinks:hosturl?mode=developer</string>
 </array>

It is working well on the simulator. But I am unable to make it working on the devices. Anyone can help this.


回答1:


If you want to open the application in a development environment you must:

Step 1: Specify the associated domains

service:fully qualified_domain?mode=alternate mode

ex: applinks:YOUR_DOMAIN?mode=developer

Step 2: Enable Associated Domain Development on device

On the test device, you need to activate the Associated Domain Development setting which is in : Setup -> Developer

Settings

Developer



来源:https://stackoverflow.com/questions/63500747/universallink-stop-working-on-ios-14-devices

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!