@@ -18,7 +18,6 @@ import UIKit
1818
1919import FirebaseCore
2020import FirebaseInAppMessaging
21- import FirebaseDynamicLinks
2221
2322@UIApplicationMain
2423class AppDelegate : UIResponder , UIApplicationDelegate {
@@ -30,39 +29,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3029 // Uncomment the following line to disable In-App Messaging auto-startup.
3130 // InAppMessaging.inAppMessaging().automaticDataCollectionEnabled = false
3231
33- FirebaseOptions . defaultOptions ( ) ? . deepLinkURLScheme = " com.google.InAppMessagingExampleSwiftiOS "
3432 FirebaseApp . configure ( )
3533 return true
3634 }
37-
38- func application( _ app: UIApplication ,
39- open url: URL ,
40- options: [ UIApplication . OpenURLOptionsKey : Any ] = [ : ] ) -> Bool {
41- return application ( app,
42- open: url,
43- sourceApplication: options [ . sourceApplication] as? String ,
44- annotation: options [ . annotation] as Any )
45- }
46-
47- func application( _ application: UIApplication ,
48- open url: URL ,
49- sourceApplication: String ? ,
50- annotation: Any ) -> Bool {
51- let dynamicLink = DynamicLinks . dynamicLinks ( ) . dynamicLink ( fromCustomSchemeURL: url)
52-
53- if dynamicLink != nil {
54- if dynamicLink? . url != nil {
55- // Handle the deep link. For example, show the deep-linked content,
56- // apply a promotional offer to the user's account or show customized onboarding view.
57- // ...
58- } else {
59- // Dynamic link has empty deep link. This situation will happens if
60- // Firebase Dynamic Links iOS SDK tried to retrieve pending dynamic link,
61- // but pending link is not available for this device/App combination.
62- // At this point you may display default onboarding view.
63- }
64- return true
65- }
66- return false
67- }
6835}
0 commit comments