Firebase Dynamic Link doesn't redirect to the app when open through Safari

旧街凉风 提交于 2020-06-27 08:40:46

问题


I have added Firebase Dynamic Link in my app, when I open in iPhone link through Google Chrome, it redirects me to the app, but when I'm trying to open app through Safari (I'm opening links through the Notes, not directly from the Safari), it doesn't open the app.

I'm testing on real device, not in simulator.

I have followed official Firebase Dynamic Links Tutorial.

What can be wrong and how is possible to fix that?


回答1:


My problem was that in Xcode in Capabilities Tab in Associated Domains, in Domains field, I wrote wrong domain, instead of appplinks:app_id.app.goo.gl I wrote: appplinks:app_id.goo.gl, so i missed .app, after app_id, after changing it, it starts work correctly!




回答2:


One thing we discovered while trying to implement Firebase Dynamic Linking in our app was that the Apple App Association File had to be in the .well_known directory on the web server. Apple's app association documentation states the association file can be in either the root or .well_known:

Place this file either in your site’s .well-known directory, or directly in its root directory.

Setting Up an App's Association File

However, in looking at the web server logs when performing a fresh install of the app on a device, we saw calls being made to the .well_known directory. Once we copied the association file to the .well_known directory, Firebase Dynamic Linking worked as expected.




回答3:


add applinks:appName.page.link to associated domain in xcode

https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_associated-domains you can't open your app through safari , you can open it only by clicking on the link or scanning it(QR) using iPhone camera



来源:https://stackoverflow.com/questions/49030395/firebase-dynamic-link-doesnt-redirect-to-the-app-when-open-through-safari

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