apache / cordova-android

Apache Cordova Android
https://cordova.apache.org/
Apache License 2.0
3.59k stars 1.52k forks source link

Sweetalert did not showing in Android Studio Emulator #1611

Closed nandhawalrost closed 1 year ago

nandhawalrost commented 1 year ago

Bug Report

Problem

What is expected to happen?

Sweetalert showing in Android Studio Emulator

What does actually happen?

Sweetalert did not showing in Android Studio Emulator, in other emulator it's showing

Information

Command or Code

Environment, Platform, Device

Version information

Checklist

breautek commented 1 year ago

If it works in some emulators but not the Android Emulator, then that would suggest it's a bug inside the Android Emulator, not Cordova...

But it's most likely not even an emulator, but rather the webview version you're trying to run it on. Emulators ships with the webview at AOSP of their given versions, they are all quite dated.

If you use a Google Play emulator with the Google Play image, then you can log into the Google Play store and update the system webview to get a modern webview. Older android versions are capped to some degree. Modern webview has a min SDK of API 24/Android 7.

To get more insight on what is actually happening, see the Chrome remote inspector (see how).

Closing because this does not appear to be a bug within Cordova.