ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
11.88k stars 995 forks source link

bug: undefined is not an object (evaluating 'cordova.ThemeableBrowser.open') #2127

Closed manhlh closed 4 years ago

manhlh commented 4 years ago

Bug Report

Capacitor Version

@capacitor/cli: 1.3.0

@capacitor/core: 1.3.0

@capacitor/android: 1.3.0

@capacitor/ios: 1.3.0

npx cap doctor output:

Latest Dependencies:

@capacitor/cli: 1.3.0

@capacitor/core: 1.3.0

@capacitor/android: 1.3.0

@capacitor/ios: 1.3.0

Installed Dependencies:

@capacitor/android not installed

@capacitor/cli 1.3.0

@capacitor/ios 1.3.0

@capacitor/core 1.3.0

Found 19 Capacitor plugins for ios: cordova-clipboard (1.2.1) cordova-plugin-advanced-http (2.2.0) cordova-plugin-app-version (0.1.9) cordova-plugin-camera (4.0.3) cordova-plugin-datepicker (0.9.3) cordova-plugin-device (2.0.2) cordova-plugin-dialogs (2.0.2) cordova-plugin-fcm-with-dependecy-updated (2.4.0) cordova-plugin-file (6.0.1) cordova-plugin-inappbrowser (3.1.0) cordova-plugin-ionic-keyboard (2.1.3) cordova-plugin-ionic-webview (4.1.2) cordova-plugin-ios-camera-permissions (1.2.0) cordova-plugin-native-spinner (1.1.3) cordova-plugin-nativestorage (2.3.2) cordova-plugin-splashscreen (5.0.2) cordova-plugin-statusbar (2.4.2) cordova-plugin-themeablebrowser (0.2.18) cordova-plugin-whitelist (1.3.3) [success] iOS looking great! 👌

Current Behavior

BUT I run with only Ionic, it run...

Sample Code or Sample Application Repo

declare var cordova: any; ... this.ref = cordova.ThemeableBrowser.open(this.productUrl, '_blank', options)

npm --version output: 6.12.1

node --version output: v10.16.3

pod --version output (iOS issues only):1.8.4

jcesarmobile commented 4 years ago

did you run npx cap update or npx cap sync after installing the plugin? If you ran them and still face the issue, can you provide a sample app?

jcesarmobile commented 4 years ago

closing since there was no response from the reporter

ionitron-bot[bot] commented 1 year ago

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.