Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check Firebase deep link when the app is not install?

In my app, I have deep link from Firebase.

In this methods, I get the link when user have the app install.

- (BOOL)application:(UIApplication *)application
continueUserActivity:(NSUserActivity *)userActivity
 restorationHandler:(void (^)(NSArray *))restorationHandler

but when the user doesn't install my app, it takes him to the App Store and after the install, the app should open and call this method.

How can I check this without upload version to app store?

like image 447
Roei Nadam Avatar asked Feb 06 '23 09:02

Roei Nadam


1 Answers

Firebase doesn't know (or care) how the application is installed onto your device. Installing directly from Xcode and using a beta distribution system (TestFlight, Hockey, Fabric, etc.) are treated exactly the same way as going through the App Store.

Here is a flow you can use to test this:

  1. Install a build of your app that includes the Dynamic Links SDK
  2. Generate a link and post it somewhere like iOS Notes
  3. Uninstall your app
  4. Open the link and let it redirect all the way through to the App Store page
  5. Close the App Store
  6. Install a build of your app locally (using either Xcode or TestFlight/Fabric/etc.)
  7. Open your app
  8. The link data will be returned to you, exactly the same way it would be when your app is installed from the App Store by a user.
like image 97
Alex Bauer Avatar answered Feb 08 '23 15:02

Alex Bauer