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/06/16 23:46:00 UTC

[GitHub] [cordova-plugin-inappbrowser] luccadumas opened a new issue #730: On ("loadstart") event not working on Android, only on IOS

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


   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   
   Open a PDF file on another page.
   
   ### What does actually happen?
   
   On Android nothing happens, not even an error, as if the event was not called.
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   A time ago, it used to work well, the file in pdf format opens on another page, but now on Android this function does not work, only on IOS.
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
       browser.on("loadstart").subscribe(`
         (ev: InAppBrowserEvent) => {
           if (ev.url.includes("file-pdf")) {
             const browser2 = this.browser.create(ev.url, "_system", iabOptions);
             browser2.show();
   
             browser = this.newBroser(this.urlRedirect);
           }
         },
         (err) => {
           console.log("InAppBrowser loadstart Event Error: " + err);
         }
       );
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   
   On any Android device, IOS works well.
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   Cordova: 9.0.0 (cordova-lib@9.0.1)
   Ionic: 5.4.13
   ndroid-targetSdkVersion: 28
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [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] JensUweB edited a comment on issue #730: On ("loadstart") event not working on Android, only on IOS

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


   I can confirm this issue. On iOS, pdf download links are working as expected, but on android just nothing happens at all, no event is firing.


----------------------------------------------------------------
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] luccadumas commented on issue #730: On ("loadstart") event not working on Android, only on IOS

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


   > @luccadumas Did you try with other url not an url file ?
   
   With a common url works well.


----------------------------------------------------------------
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] JensUweB commented on issue #730: On ("loadstart") event not working on Android, only on IOS

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


   Looks like the same issue as #311 


----------------------------------------------------------------
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] pookdeveloper commented on issue #730: On ("loadstart") event not working on Android, only on IOS

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


   @luccadumas  Did you try with other url not an url file ?


----------------------------------------------------------------
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] JensUweB commented on issue #730: On ("loadstart") event not working on Android, only on IOS

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


   I can confirm this issue. On iOS, pdf download links are working as expected, but on android just nothing happens at all.
   


----------------------------------------------------------------
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] gonzad77 commented on issue #730: On ("loadstart") event not working on Android, only on IOS

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


   @luccadumas I have the same issue, did you find a solution?


----------------------------------------------------------------
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] luccadumas commented on issue #730: On ("loadstart") event not working on Android, only on IOS

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


   > @luccadumas I have the same issue, did you find a solution?
   
   Man, I managed to get around the error, but it still doesn't work as expected, I'm using ```loadstop``` instead of ```loadstart```


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