[ 
https://issues.apache.org/jira/browse/CB-11561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16544802#comment-16544802
 ] 

Shazron Abdullah commented on CB-11561:
---------------------------------------

Related CB-12815

> 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: cordova-plugin-wkwebview-engine
>         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
>            Priority: Major
>              Labels: ios, triaged
>
> 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
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to