Cap-go / capacitor-inappbrowser

Capacitor plugin in app browser with urlChangeEvent
MIT License
66 stars 48 forks source link

openWebView() crashes on Android #43

Closed cyrilfr closed 1 year ago

cyrilfr commented 1 year ago

I tried to use openWebView() in my app on Android but it crashes. This seems to be related to the theme I use in my AndroidManifest.xml.

It throws an exception:

java.lang.ClassCastException: androidx.appcompat.widget.Toolbar cannot be cast to android.widget.Toolbar

I fixed this issue by simply replacing the import in the source code of this plugin.

riderx commented 1 year ago

do you use capacitor 5 or 4 ?

cyrilfr commented 1 year ago

I'm using Capacitor 5.

riderx commented 1 year ago

Ok i think i found the issue can you try again ?

cyrilfr commented 1 year ago

It's fixed! Thanks :+1:

bhekor commented 1 year ago

If you can help others with your resolve, it'll be great. thanks.

riderx commented 1 year ago

@bhekor not sure to understand heat you mean it’s working on latest version I fixed it