-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
IllegalArgumentException when closing InAppBrowser on android #1007
Comments
I'm not that familiar with this plugin's codebase but did some exploratory digging and
Is when it reaches Cordova code, which is a part that calls on the Android SDK. cordova-plugin-inappbrowser/src/android/InAppBrowser.java Lines 532 to 540 in 8ee1d38
Line 534 is the code entering the The Android SDK claims that:
and doesn't document any other causes for an I however did find hints at SO that suggest that this exception will raise if attempting to I think test code needs to be added to confirm that double-dismissing a dialog (or at least attempting to dismiss it while And if Cordova needs to clean up anything(like setting the |
Bug Report
Problem
We are facing a crash (reported from Google Play Console), that is happening on some phones, mentioned InAppBrowser in the stack trace.
The app seems to be crashing when closing the in-app browser. I see that a very similar issue was closed in #616 but we're using plugin version 5 and the issue was still experienced by a user last week.
Information
We could not reproduce the issue on our devices, I'm sharing screenshots from the console.
Logs
Environment, Platform, Device
Android 9 (SDK 28), Xiaomi Redmi Note 5 Pro.
Version information
cordova-plugin-inappbrowser: v5.0.0
cordova android version: ^10,0,0
Ionic:
Ionic CLI : 5.4.16
Ionic Framework : @ionic/angular 6.5.1
@angular-devkit/build-angular : 14.2.10
@angular-devkit/schematics : 14.2.10
@angular/cli : 14.2.10
@ionic/angular-toolkit : 6.1.0
Cordova:
Cordova CLI : 11.0.0
Cordova Platforms : android 10.1.2
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 27 other plugins)
Utility:
cordova-res : 0.15.4
native-run : 1.7.2
System:
Android SDK Tools : 26.1.1 (C:\Users\pcadm\AppData\Local\Android\Sdk)
NodeJS : v16.10.0 (C:\Program Files\nodejs\node.exe)
npm : 7.24.0
OS : Windows 10
Checklist
The text was updated successfully, but these errors were encountered: