Open WuglyakBolgoink opened 4 years ago
I think you could use cordova-plugin-device to simple detect if run on emulator with device.isVirtual
@maxdsgroup hm...
@maxdsgroup hm... .. I tested it now and works fine, also on iOS emulator, when i run it on a real device it detects the difference, so i think it is a possible solution to fix this problem ..
@maxdsgroup hm... .. I tested it now and works fine, also on iOS emulator, when i run it on a real device it detects the difference, so i think it is a possible solution to fix this problem ..
ok, I need to check this with genymotion and android emulator
Hi,
i tested it on Genymotion emulator and i know that device.isVirtual
doesn't work ..
but i saw your code on java side,
when you check if running on emulator :
if boolean checkGenymotion = Build.MANUFACTURER.contains("Genymotion");
I'm not a java expert but i think is possible to use the same logic to implement a method to disable root detection for Genymotion emulators.
is this plugin on ios simulator?
TODO: check this library https://github.com/framgia/android-emulator-detector