[ 
https://issues.apache.org/jira/browse/CB-11520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shazron Abdullah updated CB-11520:
----------------------------------
    Environment: iOS, cordova-plugin-wkwebview-engine  (was: iOS)

> executeScript does not return value on iOS
> ------------------------------------------
>
>                 Key: CB-11520
>                 URL: https://issues.apache.org/jira/browse/CB-11520
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-inappbrowser
>         Environment: iOS, cordova-plugin-wkwebview-engine
>            Reporter: Joseph Carroll
>            Priority: Major
>
> The following code does not return any value from the `executeScript`
> {code}
>         var ref = cordova.InAppBrowser.open('http://some-auth-page', 
> '_blank', 'toolbar=no');
>         ref.addEventListener('loadstop', function() {
>             var interval = setInterval(function() {
>                 ref.executeScript({
>                         code: "$ads.secret.parseToken();" 
>                     },
>                     function(data) {
>                         if (data) {
>                             var secretElement = 
> document.getElementById('secret');
>                             secretElement.innerText = 
> JSON.stringify(arguments);
>                             ref.close();
>                             clearInterval(interval);
>                         }
>                     }
>                 );
>             }, 500);
>         });
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to