问题描述
我已经在我的应用程序中添加了Firebase Dynamic Link
,当我通过Google Chrome
在iPhone
链接中打开时,它会将我重定向到该应用程序,但是当我尝试通过Safari
打开应用程序时(通过Notes打开链接,而不是直接从Safari中打开链接),它不会打开该应用程序.
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.
我已遵循官方 Firebase动态链接教程.
什么是错的,怎么可能解决呢?
What can be wrong and how is possible to fix that?
推荐答案
我的问题是在关联域"的"Capabilities
"选项卡中的"Capabilities
"中的"Xcode
"中,我写了错误的域,而不是appplinks:app_id.app.goo.gl
我写道:appplinks:app_id.goo.gl
,所以我错过了.app
,在app_id
之后,对其进行了更改,它可以正常工作!
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!
这篇关于通过Safari打开时,Firebase Dynamic Link不会重定向到应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!