Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dynamic links / universal links not working in cold start

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.*******.*****

like image 656
adam eliezerov Avatar asked Oct 17 '19 17:10

adam eliezerov


1 Answers

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

like image 188
cyberbarker Avatar answered Nov 17 '22 03:11

cyberbarker