Hello,
We are using the Firebase dynamic links plugin to handle links created by a backend server using Firebase REST API.
The plugin works without any issues on Android. But in IOS, when someone clicks the link the app opens but the onDynamicLink()
is never called.
We are calling onDynamicLink()
in the initializeApp()
inside platform ready callback and added GoogleAndroidClientId
and GoogleIOSClientId
to the platform preferences as mentioned in the documentations. We also have both google-services.json
and GoogleService-Info.plist
in the project root folder.
We are using a custom domain with the dynamic links and configured it in Firebase console and in XCode we added FirebaseDynamicLinksCustomDomains
as mentioned here.
We get couple of errors in XCode console:
[Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add [FIRApp configure]; ( FirebaseApp.configure() in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8
and (API Keys removed)
2020-03-12 22:15:10.220893+0300 Doorek[32896:4363162] Starting Firebase DynamicLinks plugin 2020-03-12 22:15:10.485683+0300 Doorek[32896:4363376] Task <C948DCF9-2A18-40F9-8A24-FDF61460D9C3>.<2> finished with error [-1003] Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={NSUnderlyingError=0x28255f5d0 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_kCFStreamErrorCodeKey=8, _kCFStreamErrorDomainKey=12}}, NSErrorFailingURLStringKey=https://firebasedynamiclinks-ipv6.googleapis.com/v1/installAttribution?key=, NSErrorFailingURLKey=https://firebasedynamiclinks-ipv6.googleapis.com/v1/installAttribution?key=, _kCFStreamErrorDomainKey=12, _kCFStreamErrorCodeKey=8, NSLocalizedDescription=A server with the specified hostname could not be found.}
cordova plugin list
:
cordova-plugin-androidx 1.0.2 “cordova-plugin-androidx”
cordova-plugin-androidx-adapter 1.1.0 “cordova-plugin-androidx-adapter”
cordova-plugin-device 2.0.3 “Device”
cordova-plugin-firebase-dynamiclinks 4.0.3 “FirebaseDynamicLinksPlugin”
cordova-plugin-ionic-keyboard 2.2.0 “cordova-plugin-ionic-keyboard”
cordova-plugin-ionic-webview 4.1.3 “cordova-plugin-ionic-webview”
cordova-plugin-splashscreen 5.0.3 “Splashscreen”
cordova-plugin-statusbar 2.4.3 “StatusBar”
cordova-plugin-whitelist 1.3.4 “Whitelist”
cordova-plugin-x-socialsharing 5.6.4 “SocialSharing”
cordova-sqlite-storage 4.0.0 “Cordova sqlite storage plugin - cordova-sqlite-storage plugin version”
cordova-support-android-plugin 1.0.1 “cordova-support-android-plugin”
cordova-support-google-services 1.3.2 “cordova-support-google-services”
es6-promise-plugin 4.2.2 “Promise”
Cordova-ios version 5.1.0
Ionic 5 & Angular 9.
I’ve gone through our configurations in Firebase and our implementation tens of times and I honestly don’t know what is wrong. It just does not work in IOS.
Appreciate any help.
Thanks