Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalArgumentException on Android #348

Open
Asterodeia opened this issue Nov 20, 2018 · 4 comments
Open

IllegalArgumentException on Android #348

Asterodeia opened this issue Nov 20, 2018 · 4 comments

Comments

@Asterodeia
Copy link

Asterodeia commented Nov 20, 2018

Hello all,

We have found this error on Google Play Store console that seams to be an InAppBrowser problem (not happening in another application that is almost exactly the same apart from using InAppBrowser)

java.lang.IllegalArgumentException:
  at android.view.WindowManagerGlobal.findViewLocked (WindowManagerGlobal.java:508)
  at android.view.WindowManagerGlobal.removeView (WindowManagerGlobal.java:417)
  at android.view.WindowManagerImpl.removeViewImmediate (WindowManagerImpl.java:128)
  at android.app.Dialog.dismissDialog (Dialog.java:446)
  at android.app.Dialog.dismiss (Dialog.java:429)
  at org.apache.cordova.inappbrowser.InAppBrowser$5$1.onPageFinished (InAppBrowser.java:461)

We don't have the ios stacktraces, so I don't know if it's an android-only problem.

We are using version 2.0.2 on an ionic3/cordova-android 6.4.0 stack.

This is the code we use that uses inappBrowser : (typescript).

constructor(private inAppBrowser: InAppBrowser, ...

...

this.ref = this.inAppBrowser.create(https://url.com, "_blank", "location=no,toolbar=no,hidden=yes");
this.ref.insertCSS({code: "body{background-color: #3F2D28;}"});

...
this.ref.on("loadstart").subscribe()...
this.ref.on("loadstop").subscribe()...
this.ref.on("loaderror").subscribe()...
this.ref.on("exit").subscribe()...

...

this.ref.show();

...
this.ref.close();

Is there someone who could tell what is wrong? Thanks

@janpio
Copy link
Member

janpio commented Nov 20, 2018

Can you reproduce any crashes?
What OS version are those occuring?

@Asterodeia
Copy link
Author

We could not reproduce the crash for the moment, we are trying to figure it out.
OS version seem to be mostly Android 7.0, but it occurs also on 7.1, 8 and 9

@mread1208
Copy link

We're also seeing this issue over 200+ times in the last 30 days. Mostly happening on Galaxy S9, S9+, and Galaxy Note phones using Android. We're using InAppBrowser version 3.0.0

@uqbMtran
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants