[IOS][Dynamic Links] Technical Refinement - DeepLink Firebase SDK
Questions:
N/D
Technical Refinement
Description
Discovery: Technical Discovery
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 ondef firebase_pods
pod 'FirebaseDynamicLinks', '~> 7.11.0'
After, run the command, on path:
intl-whitelabel-app/workspaces/frontend/ios/App
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:
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
N/A
Dependencies
N/A
Unit Test
N/A
Useful Links
N/A