proyecto26 / react-native-inappbrowser

📱InAppBrowser for React Native (Android & iOS) 🤘
https://www.npmjs.com/package/react-native-inappbrowser-reborn
MIT License
1.31k stars 223 forks source link

InAppBrowser.isAvailable() returns false on Android despite AndroidManifest.xml fixes #332

Closed skourt closed 2 years ago

skourt commented 2 years ago

I am attempting to use the InAppBrowser, but regardless of whatever fixes I try to find online, it will not open on Android because the isAvailable() function returns false. This is happening even after adding the following to AndroidManifest.xml:

`

`

I also tried adding the following to no avail:

<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />

Likewise, I tried to use both supportLibVersion = "28.0.0" and androidXAnnotation = "1.2.0" androidXBrowser = "1.3.0" but neither one of these worked. Not sure what I am missing in my Android setup but it's working perfectly well on iOS.

My React Native version is 0.66.4 and react-native-inappbrowser-reborn version is 3.6.3.

Any help would be greatly appreciated. Thanks!

jdnichollsc commented 2 years ago

Hey mate, what was the solution for you?

skourt commented 2 years ago

The issue was that I was trying it on an emulator without Chrome. It worked when testing on an Android device.

I'm probably going to try to get Chrome on my emulator at some point but it's a whole other set of issues :/

jdnichollsc commented 2 years ago

Oh I understand, that's why I always use an Android Device 😅