pmurpmur commented on issue #421: executeScript not working in ionic 3
URL: 
https://github.com/apache/cordova-plugin-inappbrowser/issues/421#issuecomment-465985540
 
 
   I was able to circumvent this issue by not using the Ionic-Native library 
and interfacing with Cordova directly. In other words, try code similar to this:
   
   ```
   const browser = cordova.InAppBrowser.open('https://example.com, '_blank');
   
   browser.addEventListener('loadstop', () => {
     setTimeout(() => {
       browser.executeScript({ 
         code: 'document.body.innerHTML'
       }, (data) => {
         console.log('script')
       });
     }, 2000);
   });
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to