Firebase pending dynamic links not working

后端 未结 2 864
忘了有多久
忘了有多久 2020-12-31 15:42

According to the Firebase Dynamic Links documentation, even if app is not installed, if user opens the link on the device, app page on Appstore opened, and once app installe

相关标签:
2条回答
  • 2020-12-31 16:13

    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 :)

    0 讨论(0)
  • 2020-12-31 16:14

    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.

    0 讨论(0)
提交回复
热议问题