cordova-plugin-dialogs
cordova-plugin-dialogs copied to clipboard
notification.alert not working on cordova run browser
Bug Report
notification.alert
Problem
not working on cordova run browser
What is expected to happen?
What does actually happen?
Notification Alert Does Not Work When Running in Cordova Run Browser
Information
Command or Code
navigator.notification.alert("Maaf Promo tidak di temukan",null,'Informasi',['Ok']);
Environment, Platform, Device
Cordova Packages:
cli: 11.0.0
common: 4.1.0
create: 4.1.0
lib: 11.1.0
common: 4.1.0
fetch: 3.1.0
serve: 4.0.1
Project Installed Platforms:
android: 12.0.0
browser: 7.0.0
Project Installed Plugins:
cordova-plugin-app-version: 0.1.9
cordova-plugin-browsersync-gen2: 1.1.7
cordova-plugin-camera: 6.0.1-dev
cordova-plugin-device: 2.0.3
cordova-plugin-dialogs: 2.0.2
cordova-plugin-file: 6.0.2
cordova-plugin-firebasex: 16.1.0
cordova-plugin-geolocation: 4.0.2
cordova-plugin-minify: 0.1.2
cordova-plugin-network-information: 2.0.2
cordova-plugin-statusbar: 2.4.3
cordova-plugin-vibration: 3.1.1
cordova-plugin-x-socialsharing: 6.0.4
es6-promise-plugin: 4.2.2
phonegap-plugin-barcodescanner: 8.1.1-dev
Environment:
OS: Microsoft Windows 10 Pro 10.0.19045 (19045) (Windows 10.0.19045) x64
Node: v18.17.1
npm: 9.6.7
android Environment:
android:
ERROR: Command failed with exit code 1: avdmanager list target 'avdmanager' is not recognized as an internal or external command, operable program or batch file.
Project Setting Files:
config.xml:
package.json:
--- Start of Cordova JSON Snippet --- { "plugins": { "cordova-plugin-app-version": {}, "cordova-plugin-device": {}, "cordova-plugin-dialogs": {}, "cordova-plugin-network-information": {}, "cordova-plugin-statusbar": {}, "cordova-plugin-vibration": {}, "phonegap-plugin-barcodescanner": { "ANDROID_SUPPORT_V4_VERSION": "27.+" }, "cordova-plugin-geolocation": { "GPS_REQUIRED": "false" }, "cordova-plugin-file": {}, "cordova-plugin-x-socialsharing": {}, "cordova-plugin-firebasex": { "FIREBASE_ANALYTICS_COLLECTION_ENABLED": "true", "FIREBASE_PERFORMANCE_COLLECTION_ENABLED": "true", "FIREBASE_CRASHLYTICS_COLLECTION_ENABLED": "true", "FIREBASE_FCM_AUTOINIT_ENABLED": "true", "ANDROID_ICON_ACCENT": "#FF00FFFF", "ANDROID_FIREBASE_PERFORMANCE_MONITORING": "false", "ANDROID_PLAY_SERVICES_TAGMANAGER_VERSION": "18.0.2", "ANDROID_PLAY_SERVICES_AUTH_VERSION": "20.5.0", "ANDROID_FIREBASE_ANALYTICS_VERSION": "21.2.2", "ANDROID_FIREBASE_MESSAGING_VERSION": "23.1.2", "ANDROID_FIREBASE_CONFIG_VERSION": "21.4.0", "ANDROID_FIREBASE_PERF_VERSION": "20.3.2", "ANDROID_FIREBASE_AUTH_VERSION": "22.0.0", "ANDROID_FIREBASE_INAPPMESSAGING_VERSION": "20.3.2", "ANDROID_FIREBASE_FIRESTORE_VERSION": "24.6.0", "ANDROID_FIREBASE_FUNCTIONS_VERSION": "20.3.0", "ANDROID_FIREBASE_IID_VERSION": "21.1.0", "ANDROID_FIREBASE_INSTALLATIONS_VERSION": "17.1.3", "ANDROID_FIREBASE_CRASHLYTICS_VERSION": "18.3.7", "ANDROID_FIREBASE_CRASHLYTICS_NDK_VERSION": "18.3.7", "ANDROID_GSON_VERSION": "2.9.0", "ANDROID_FIREBASE_PERF_GRADLE_PLUGIN_VERSION": "1.4.2", "ANDROID_GRPC_OKHTTP": "1.46.0" }, "cordova-plugin-minify": {}, "cordova-plugin-browsersync-gen2": {}, "cordova-plugin-camera": { "ANDROIDX_CORE_VERSION": "1.6.+" } }, "platforms": [ "browser", "android" ] } --- End of Cordova JSON Snippet ---
Version information
Checklist
- [ ] I searched for existing GitHub issues
- [ ] I updated all Cordova tooling to most recent version
- [ ] I included all the necessary information above