I read up on all the posts I could find on SO and GG and am still getting a nil url when launching the app for the first time after tapping a dynamic link pasted into the Notes app on iOS.
Universal Links work fine and as expected through application(_:continue:restorationHandler:). When coming through application(_:open:options:) (formerly application:openURL:options:) however, the url comes in as <my-scheme-name>://google/link/?is_weak_match=1. No matter how I configure my project/app, the url is always nil. Also, application(_:open:options:) is called on every first launch of the app regardless of whether a dynamic link was tapped before the app was installed or not. Is that to be expected?
Deep link example:
My project configuration and set up below…
Configuration:
- apple-app-site-association file is set up and looks good for Universal Links.
- Custom URL scheme set up in Info.plist.
- Using latest GoogleService-Info.plist
- Not in Safari 'Private' Mode
- Calling FirebaseOptions.defaultOptions()?.deepLinkURLScheme = "<my-scheme-name>" before FirebaseApp.configure().
Setup:
- Xcode 9, Beta 5
- Deployment target: iOS 10.3.1 and higher
- Swift 4
- Firebase (4.0.4)
- FirebaseAnalytics (4.0.2)
- FirebaseAuth (4.0.0)
- FirebaseCore (4.0.4)
- FirebaseDatabase (4.0.0)
- FirebaseDynamicLinks (2.0.0)
- FirebaseInstanceID (2.0.0)
Thanks for you help.