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 2020/12/01 12:38:28 UTC

[GitHub] [cordova-plugin-inappbrowser] brunoPert opened a new issue #829: Can not open local html file in ios

brunoPert opened a new issue #829:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/829


   # Bug Report
   
   ## Problem
   
   Trying to open an html file, which is located in the same file system of my cordova app, simply doesnt work nor logging anything.  Testing the same flow in the web works, so that's why I'm assuming it's a plugin issue.
   
   ### What is expected to happen?
   The file should be open.
   
   ### What does actually happen?
   
   App remains in white sreen:
   
   ![Captura de Pantalla 2020-12-01 a la(s) 09 32 35](https://user-images.githubusercontent.com/49445815/100740930-3ae4bc00-33b8-11eb-8362-2b352cd1fcd7.png)
   
   
   ### Command or Code
   I'm oppening the inappbrowser like this:
   
   ` const ref = cordova.InAppBrowser.open(`${liveChatUrl}&startChat=true`, '_blank', 'location=no,hidden=no,fullscreen=yes,hideurlbar=yes');`
   
   
   ### Environment, Platform, Device
   Device: iphone 8 emulator.
   OS: macOs 10.15.5.
   Xcode: 12.1
   
   ### Version information
   Inappbrowser: 4.1.0
   cordova-ios: 6.1.1
   cordova: 10.0.0
   
   
   ## Checklist
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


----------------------------------------------------------------
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


[GitHub] [cordova-plugin-inappbrowser] brunoPert commented on issue #829: Can not open html file in ios

Posted by GitBox <gi...@apache.org>.
brunoPert commented on issue #829:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/829#issuecomment-737890460


   @jcesarmobile  it loos like this:
   
   http://url.herokuapp.com/index.html?email=someEmail&startChat=true


----------------------------------------------------------------
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


[GitHub] [cordova-plugin-inappbrowser] brunoPert closed issue #829: Can not open html file in ios

Posted by GitBox <gi...@apache.org>.
brunoPert closed issue #829:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/829


   


----------------------------------------------------------------
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


[GitHub] [cordova-plugin-inappbrowser] brunoPert commented on issue #829: Can not open html file in ios

Posted by GitBox <gi...@apache.org>.
brunoPert commented on issue #829:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/829#issuecomment-737895054


   @jcesarmobile  I tested it placing the html file on my local file system as well as hosting it on heroku. Testing it on  the cordoba web side (I mean, running my app in safari) works well, that's why I assume it's inappbrowser issue. 


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
zero-1 edited a comment on issue #829:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/829#issuecomment-770481342


   going down to ios-cordova 5.0.1 and IAB 3.1.0 just gave me build errors.
   
   There might be some compatibility issues with latest ionic but I didn't spend too much time looking into it.
   
   Tried the ios-cordova 6.1.1 with latest IAB on iOS 13.7 in the simulator... got a similar issue.
   
   Any tips on how to proceed would be appreciated.
   
   Update
   
   This may be an ionic issue. I tried a blank cordova project https://github.com/dpa99c/cordova-plugin-inappbrowser-test
   
   '_blank' worked just fine here.


----------------------------------------------------------------
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


[GitHub] [cordova-plugin-inappbrowser] brunoPert closed issue #829: Can not open html file in ios

Posted by GitBox <gi...@apache.org>.
brunoPert closed issue #829:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/829


   


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
brunoPert edited a comment on issue #829:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/829#issuecomment-737890460


   @jcesarmobile  it looks like this:
   
   http://url.herokuapp.com/index.html?email=someEmail&startChat=true


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
zero-1 commented on issue #829:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/829#issuecomment-771320504


   I am using 
   "cordova-plugin-ionic-webview": "^5.0.0",
   
   This seems like a "cordova-plugin-ionic-webview" issue rather than cordova InAppBrowser issue.


----------------------------------------------------------------
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


[GitHub] [cordova-plugin-inappbrowser] jcesarmobile commented on issue #829: Can not open html file in ios

Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on issue #829:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/829#issuecomment-770700899


   Are you using cordova-plugin-ionic-webview? If so, make sure you are using latest version


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
zero-1 commented 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
   
   I will try few more combinations... with IAB 3.1.0 .. and check whats going on with the 'beforeload' and 'loadstart' events. Will 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


[GitHub] [cordova-plugin-inappbrowser] jcesarmobile commented on issue #829: Can not open html file in ios

Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on issue #829:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/829#issuecomment-737893679


   that url doesn't help much, you said it was a local file
   does the url open on the same device using safari browser?


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
zero-1 commented on issue #829:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/829#issuecomment-770481342


   going down to ios-cordova 5.0.1 and IAB 3.1.0 just gave me build errors.
   
   There might be some compatibility issues with latest ionic but I didn't spend too much time looking into it.
   
   Tried the ios-cordova 6.1.1 with latest IAB on iOS 13.7 in the simulator... got a similar issue.
   
   Any tips on how to proceed would be appreciated.


----------------------------------------------------------------
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


[GitHub] [cordova-plugin-inappbrowser] jcesarmobile commented on issue #829: Can not open html file in ios

Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on issue #829:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/829#issuecomment-737749188


   How does the ${liveChatUrl}&startChat=true url looks like?


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
zero-1 commented on issue #829:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/829#issuecomment-771320504


   I am using 
   "cordova-plugin-ionic-webview": "^5.0.0",
   
   This seems like a "cordova-plugin-ionic-webview" issue rather than cordova InAppBrowser issue.


----------------------------------------------------------------
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


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

Posted by GitBox <gi...@apache.org>.
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