Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
```
% cordova --version
6.2.0
% cordova platform ls
Installed platforms:
ios 4.1.1
[...]
% cordova plugin ls
cordova-plugin-app-event 1.2.0 "Application Events"
cordova-plugin-compat 1.0.0 "Compat"
cordova-plugin-console 1.0.3 "Console"
cordova-plugin-device 1.1.2 "Device"
cordova-plugin-dialogs 1.2.1 "Notification"
cordova-plugin-file 4.2.0 "File"
cordova-plugin-file-opener2 2.0.2 "File Opener2"
cordova-plugin-file-transfer 1.5.1 "File Transfer"
cordova-plugin-network-information 1.2.1 "Network Information"
cordova-plugin-secure-storage 2.2.4 "SecureStorage"
cordova-plugin-whitelist 1.2.2 "Whitelist"
de.appplant.cordova.plugin.local-notification 0.8.4 "LocalNotification"
phonegap-plugin-push 1.7.4 "PushPlugin"
`````` % cordova --version 6.2.0 % cordova platform ls Installed platforms: ios 4.1.1 [...] % cordova plugin ls cordova-plugin-app-event 1.2.0 "Application Events" cordova-plugin-compat 1.0.0 "Compat" cordova-plugin-console 1.0.3 "Console" cordova-plugin-device 1.1.2 "Device" cordova-plugin-dialogs 1.2.1 "Notification" cordova-plugin-file 4.2.0 "File" cordova-plugin-file-opener2 2.0.2 "File Opener2" cordova-plugin-file-transfer 1.5.1 "File Transfer" cordova-plugin-network-information 1.2.1 "Network Information" cordova-plugin-secure-storage 2.2.4 "SecureStorage" cordova-plugin-whitelist 1.2.2 "Whitelist" de.appplant.cordova.plugin.local-notification 0.8.4 "LocalNotification" phonegap-plugin-push 1.7.4 "PushPlugin" ```
Description
When the application is suspended and something causes it to run on background (like when a push notification arrives, or when an action button on the notification is pressed), the JS code that should be called (in the same example, a notification event callback) isn't called immediately, being called only when the app becomes active again (say, by opening the app again). This is way different from the expected, which is what happens when you use the default WebView: as soon as the native part of the code calls the JS code, it executes while in background mode.
The discussion around this issue started on a [phonegap-plugin-push issue[(https://github.com/phonegap/phonegap-plugin-push/issues/985).
I can give a lot of details since I've been trying to find this bug for a long time now, but most details would be useless, and a lot of the details qere already posted on the original issue.
Also, a small app that reproduces this can be generated using instructions on the original issue.
Attachments
Issue Links
- is related to
-
CB-12815 WKWebView plugin will not execute Javascript while app is backgrounded
- Closed