-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(android): device.isVirtual return false on simulator #134
Comments
I thinks this one will be tricky, as NoxPlayer and BlueStacks try their best to hide that they are actually not a real Android device (I mean, that's their purpose...) |
thanks for reply. |
I'd fork the plugin and play with the cordova-plugin-device/src/android/Device.java Lines 169 to 172 in 4c18d1f
And try to determine if there are any hints that you're within a bluestacks simulator or a nox player emulator in |
A quick Google search gave me two results:
|
The But the answer posted at https://stackoverflow.com/a/49445230/1902598 could definitely be something incorporated in this plugin I think. |
I used this library: "https://github.com/framgia/android-emulator-detector". but it does not work correctly. But the problem is on ASUS device that has intel cpu, it does not work. |
Did any one found any solution? I'm also getting device.isVirtual return false on nox emulator. Please help |
Bug Report
device.isVirtual return false on bluestack and nox player.
It is expected to return true.
but it returns false on both.
device version is 2.0.2
The text was updated successfully, but these errors were encountered: