bug: openUrl conflict on iOS #328
Labels
bug
Something isn't working properly
ios
relates to iOS platform
runtime issue
An issue related to app runtime
Bug report
Current behavior:
By implementing Google SignIn it is required to add an
openURL
handler on iOS, by doing so the notification is not propagated to the webview anymore (window.handleOpenURL
is not called anymore):As a result this plugin is incompatible with e.g. cordova-plugin-customurlscheme.
Expected behavior:
When opening an app with a custom URL scheme the notification should be propagated to the webview.
Steps to reproduce:
Use this plugin in combination with an custom URL scheme, then open the app with that custom URL scheme ->
window.handleOpenURL
is never called.Environment information
9.0.0 ([email protected])
ios 5.0.1
10.15
Related code:
The problematic override was added here:
cordova-plugin-firebasex/src/ios/AppDelegate+FirebasePlugin.m
Line 129 in 4c9a527
handleOpenURL notification in CDVPlugin:
https://github.com/apache/cordova-ios/blob/29224370fff52dd3ee210bdf49571f338c0770c6/CordovaLib/Classes/Public/CDVPlugin.m#L130
Other information:
Cordova triggers a notification (
handleOpenURL
) when the app is opened by a custom url which is broadcasted to all plugins, this notification can be used instead of overriding the globalopenURL
handler. Related Cordova documentation can be found hereThe text was updated successfully, but these errors were encountered: