Open coleweusthem opened 2 years ago
I am having the same issue, same version of cordova-plugin-inappbrowser, also works on iOS but not Android.
Hi I am having the same issue
same android version.
Works fine in iOS
@admiralato we fixed the issue by creating a new InAppBrowserObject instead of using cordova.InAppBrowser.Open(), like so:
const browser = new InAppBrowserObject( 'https://yoururl.com/', '_blank', 'location=yes' ); browser.show();
@robsierra thanks ! but i managed to get it working by doing
var ref = cordova.InAppBrowser.open(url, ‘_blank’, ‘location=yes’);
Passing an object as third param doesn’t work on Android, but works fine in iOS.
Hi, @coleweusthem could you please check package.json for cordova-plugin-inappbrowser if not added then please add https://www.npmjs.com/package/cordova-plugin-inappbrowser, after adding its working for me. Required packages to use @ionic-native/in-app-browser
I am using this package(in app browser) to add/connect stripe account for vendors/partner
Bug Report
Problem
In App browser not work on Android. No errors. Does work on iOS
What is expected to happen?
Calling cordova.InAppBrowser.open should open the browser, but nothing happens. This works as expects on iOS.
What does actually happen?
Nothing, no errors, the browser just doesn't open.
Information
We are using ionic-v1 and cordova android 9.1.0
Command or Code
Environment, Platform, Device
We are using ionic-v1 and cordova android 9.1.0
Version information
We are using ionic-v1 cordova android 9.1.0 cordova CLI 10.0.0
Plugins: cordova-plugin-badge 0.8.8 "Badge" cordova-plugin-device 2.0.2 "Device" cordova-plugin-globalization 1.11.0 "Globalization" cordova-plugin-google-analytics 1.8.6 "Google Universal Analytics Plugin" cordova-plugin-inappbrowser 5.0.0 "InAppBrowser" cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard" cordova-plugin-local-notification 0.9.0-beta.2 "LocalNotification" cordova-plugin-splashscreen 5.0.2 "Splashscreen" cordova-plugin-statusbar 2.4.3 "StatusBar" cordova-plugin-whitelist 1.3.3 "Whitelist" ionic-plugin-keyboard 2.2.1 "Keyboard" org.apache.cordova.plugin.cache 1.0.5 "Clear Cache"
mac OSX 11.5.2
Android Studio 3.5.2 Build #AI-191.8026.42.35.5977832, built on October 30, 2019 JRE: 1.8.0_202-release-1483-b49-5587405 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.16
Checklist