ionic-team / ionic-team/capacitor-plugins

Capacitor/Device plugin not detecting Nox Player as emulator

Open
#2,364 0 comments 0 reactions 0 assignees View on GitHub
platform: android
Dominant language
Java
Stars
678
Forks
685
Avg merge
4d 22h
Merged PRs (30d)
3

Description

## Bug Report

### Plugin(s)
Capacitor/Device

### Capacitor Version
Latest Dependencies:

@capacitor/cli: 7.2.0
@capacitor/core: 7.2.0
@capacitor/android: 7.2.0
@capacitor/ios: 7.2.0

Installed Dependencies:

@capacitor/android: 4.0.1
@capacitor/core: 4.0.1
@capacitor/cli: 4.0.1
@capacitor/ios: 4.0.1

### Platform(s)
Android

### Current Behavior
The @capacitor/device plugin’s isVirtual method does not correctly identify Nox Player as an emulator. When running an Ionic/Capacitor app inside Nox Player, isVirtual returns false

### Expected Behavior
isVirtual should return true and detect NOX player as an emulator

### Code Reproduction
from(Device.getInfo()).subscribe((info)=>{
if(info.isVirtual){
alert("virtual device found!");
navigator["app"].exitApp();
}
})

### Other Technical Details
- https://github.com/ionic-team/capacitor-plugins/tree/main/device

### Additional Context
- https://www.bignox.com/

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.