我正在使用https://github.com/arnesson/cordova-plugin-firebase/,并且在Android平台和Ios平台上一切正常,只是在1种情况下面临问题- iOS-当后台通知中的应用出现在设备中时,当单击通知时,onNotificationOpen方法不起作用。
cordova-android-support-gradle-release 1.4.4 "cordova-android-support-gradle-release",
cordova-plugin-app-version 0.1.9 "AppVersion",
cordova-plugin-broadcaster 3.0.1 "broadcaster",
cordova-plugin-camera 2.4.1 "Camera",
cordova-plugin-compat 1.2.0 "Compat",
cordova-plugin-console 1.1.0 "Console",
cordova-plugin-device 1.1.7 "Device",
cordova-plugin-file 6.0.1 "File",
cordova-plugin-file-opener2 2.0.19 "File Opener2",
cordova-plugin-file-transfer 1.7.1 "File Transfer",
cordova-plugin-firebase 2.0.5 "Google Firebase Plugin",,
cordova-plugin-network-information 1.3.4 "Network Information"
cordova-plugin-splashscreen 4.1.0 "Splashscreen"
cordova-plugin-statusbar 2.4.1 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-socialsharing 5.2.1 "SocialSharing"
cordova-plugin-x-toast 2.6.0 "Toast"
cordova-sqlite-storage 2.2.0 "Cordova sqlite storage plugin"
es6-promise-plugin 4.1.0 "Promise"
ionic-plugin-keyboard 2.2.1 "Keyboard"
pushwoosh-cordova-plugin 7.8.0 "Pushwoosh"
我提供了-grantPermission并使用旧版构建系统进行构建,并且我没有使用任何本地通知插件。
window.FirebasePlugin.onNotificationOpen(function (notification) {
//while tap on notification doesn't come to this function when app is in background
})