You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/01/31 10:40:36 UTC

[GitHub] [cordova-plugin-inappbrowser] zero-1 edited a comment on issue #829: Can not open html file in ios

zero-1 edited a comment on issue #829:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/829#issuecomment-770360624


   This is definitely reproducible. I tried a similar flow on a brand new ionic app.
   
   Following is my configuration:
   
   `"plugins": {
         "cordova-plugin-inappbrowser": {},`
         ...
      `"cordova-plugin-inappbrowser": "4.1.0",`   
   
   `this.iab.create('https://some-webpage.web.app', '_blank', this.options);`
   
   My options are...
    
   `options : InAppBrowserOptions = {
       location : 'no',//Or 'no'
       zoom : 'no',//Android only ,shows browser zoom controls
       hardwareback : 'no',
       hidden: 'no',
       clearcache: 'no',
       beforeload: 'yes',
       toolbar : 'no', //iOS only22952
     };`
   
   Using _self and _system works as expected. When using _blank we end up with a blank page.
   This does seem to work in an older app which is still on an older version of cordova-iOS and using the 3.1.0 version of IAB.
   
   Another weird thing which might shed some light, when we open up the IAB window in the debugger in Safari, running something like Window.open("some-url") returns a null.
   
   As this is a brand new ionic project, I am not using any other plugins at the moment (apart form the ones which come by default)
   
   There are no warnings/errors in Xcode or in the browser console.
   
   The 'loadStop' event listener is not executed as well.... (sort of expected)
   
   Testing on Xcode 12.1 on an iOS simulator (multiple devices running iOS 14.1)
   
   This does feel similar to 
   https://github.com/apache/cordova-plugin-inappbrowser/issues/832
   https://github.com/apache/cordova-plugin-inappbrowser/issues/802
   
   The "beforeload" event is fired... but "loadstart" is not.
   
   Saw the following in Xcode 
   ` THREAD WARNING: ['InAppBrowser'] took '23.864014' ms. Plugin should use a background thread.
   IAB before load fired...
   Unbalanced calls to begin/end appearance transitions for <UIViewController: 0x7f8974f26e80>.
    The preference key "AutoHideSplashScreen" is not defined and will default to "TRUE"`
    
   I will try using IAB 3.1.0 .. and update description.
   
   
   
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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