Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Discovery: Technical Discovery  

To this feature we won’t need to do any development, all configuration can be done in Firebase Dynamic Links Console

On below, will be describe the step by step to create a new dymanic link:

...

Access Firebase Dynamic Links Console and there will be some options;

...

  1. Menu’s item

  2. Projects

    Image Removed
  3. URL Prefix

    Image Removed
  4. Create a new Dynamic link

  5. Dynamic link created

...

To create a new Dynamic link, select an URL Prefix and click on buttom “New Dynamic Link

...

Aftet that, will show the wizard page with step 1: Set up your short URL link

...

  1. Here can be custom the URL suffix, after that, click on button “Next

...

Step 2: “Set up your Dynamic link

...

  1. Here must be put the URL that there is on APP and the Dynamic link name:

    1. E.g: https://www.popeyes.es/menu (add the prefix www)

      Image Removed

    2. Image Removed

      After that click on button “Next

...

Step 3: “Define link behavior for Apple

...

  1. Select the options: Open the deep link in your Apple App and Select Apple App

    Image Removed
  2. After, select the option: App Store page for your app and next click on button “Next

    Image Removed

...

Step 4: “Define link behavior for Android

...

  1. Select the options: Open the deep link in your Android App and Select Android App

    Image Removed
  2. After, select the option: Google Play page for your app and next click on button “Next

    Image Removed

...

Step 5: “Campaign tracking, social tags and advanced options (optional)

  1. This step is optional, don’t need to do anything, just click on button “Create

    Image Removed

...

The end, the new Dynamic link will show here. Just it, now the Dynamic link it’s works.

...

When someone click in this link on WhatApp, email and etc:

...

If the user have the App installed, he will redicted to the App:

...

If the user doesn’t have the App installed:

...

Create Dynamic links on Firabase: How to configure the Firebase Dynamic Links

native code

  • TASK 1— [IOS] Create handling dynamic link

    • path: intl-whitelabel-app/workspaces/frontend/ios/App/Podfile

      • Add the FirebaseDynamicLinks lib on def firebase_pods

        Code Block
        pod 'FirebaseDynamicLinks', '~> 7.11.0'
      • After, run the command, on path: intl-whitelabel-app/workspaces/frontend/ios/App

        Code Block
        pod install
    • path: intl-whitelabel-app/workspaces/frontend/ios/App/App/AppDelegate.swift

      • We will need to change func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool

      • We will use the method:

        Code Block
        languageswift
        func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
              
            // Called when the app was launched with an activity, including Universal Links.
            // Feel free to add additional processing here, but if you want the App API to support
            // tracking app url opens, make sure to keep this call
            Branch.getInstance().continue(userActivity)
                  
            DynamicLinks.dynamicLinks()
              .handleUniversalLink(userActivity.webpageURL!) { (dynamiclink, error) in
                  if let dynamiclink = dynamiclink {
                  ...
                  }
                  else {
                      CAPBridge.handleContinueActivity(userActivity, restorationHandler)
                  }
              }
            
          return true
        }

Screenshots

  • N/A

POC

  • N/A

Impact Analysis

...