I use firebase dynamic links. They work perfectly fine when the app is in background and I use the application continue userActivity
function.
However if I click on a dynamic link and cold start the application (not running in background) then not only does the application continue userActivity
not run, when I breakpoint at didFinishLaunchingWithOptions
, I try to print launchOptions
and it returns nil
.
I setup the dynamic links exactly like the documentation describes.
In the associated domains - I have applinks:*******.page.link
and under URL Types I created one with the identifier *******.page.link
and the URL scheme as my Bundle identifier.
In didFinishLaunchingWithOptions
- before FirebaseApp.configure()
, I do (as instructed from a similar question I found about universal linking) FirebaseOptions.defaultOptions()?.deepLinkURLScheme = org.*******.*****
To receive the Firebase Dynamic Links that you created, you must include the Dynamic Links SDK in your app and call the handleUniversalLink: and dynamicLinkFromCustomSchemeURL: methods when your app loads to get the data passed in the Dynamic Link.
Visit for more detail
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With