You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "labarro (via GitHub)" <gi...@apache.org> on 2023/12/06 15:55:25 UTC
[I] "browser.on('loaderror')" does not work properly on iOS. [cordova-plugin-inappbrowser]
labarro opened a new issue, #1041:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/1041
# Bug Report
## Problem
"browser.on('loaderror')" does not work properly on iOS.
### What is expected to happen?
I have a function to handle the loaderror of my page; this function calls another function and then closes the browser:
browser.on('loaderror').subscribe(event => {
this.MyFunction();
browser.close();
});
### What does actually happen?
The load error message appears on my screen, but the function is not executed:

## Information
The same code works perfectly on Android, but on iOS, it freezes on the load error screen.
### Environment, Platform, Device
iOS: 16.6.1
Device: iPhone XR
### Version information
@ionic/cli@6.20.1
cordova@11.1.0
ios-deploy@1.12.1
cordova-plugin-inappbrowser@3.2.0
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [x] I searched for existing GitHub issues
- [ ] 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.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org
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