Firebase pending dynamic links not working

橙三吉。 提交于 2019-11-30 09:49:05

The post-install deeplinking is based on checking a flag:

  • [FIRApp configure] called
  • Dynamic Links SDK checks whether it is a fresh install (e.g. no flag present)
  • If so, it calls the Dynamic Links API to check if there is a dynamic link to resolve
  • If yes, the SDK calls [[UIApplication sharedApplication] openURL:url]; using the custom URL scheme set up manually on FIROptions or the lowercase bundle ID (e.g. com.foo.bar).

If you're not receiving, check the custom URL scheme is properly defined.

To clarify, if my understanding of the linked Google Groups post is correct, the Firebase Dynamic Links library only checks for 'pending dynamic links' once. Ever. So if the app has already checked for pending links, you'd need to delete it and reinstall to check again.

Now to answer your question, neither of those two methods would usually be called if the app isn't installed when the link is clicked. The openURL method responds to custom URI schemes, and the continueUserActivity method responds to Universal Links. Neither of those is being used when the app is manually opened by the user after downloading for the first time. The Firebase documentation does say the openURL method always called on initial install, but I have never seen happening anywhere else so it's possible they are doing something unusual.

At risk of going off-topic, I'd suggest taking a look at Branch.io (full disclosure: I'm on the team). You'll get all of the benefits of Dynamic Links, plus a laundry list of extra functionality and clearer documentation :)

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