You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Ricardo Panaggio (JIRA)" <ji...@apache.org> on 2016/07/12 15:00:23 UTC
[jira] [Created] (CB-11561) wkwebview-engine-localhost prevents JS
code to be executed in background
Ricardo Panaggio created CB-11561:
-------------------------------------
Summary: wkwebview-engine-localhost prevents JS code to be executed in background
Key: CB-11561
URL: https://issues.apache.org/jira/browse/CB-11561
Project: Apache Cordova
Issue Type: Bug
Components: Plugin WKWebViewEngine
Environment: ```
% 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"
```
Reporter: Ricardo Panaggio
Assignee: Shazron Abdullah
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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org