You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
There is no Utility to determine whether current execution is on a simulator or emulator #9064
Is your feature request related to a problem? Please describe.
The current function isRealDevice does not work properly on Android, and returns data on iOS instead of a boolean.
There are other relying functions that call isRealDevice.
Describe the solution you'd like
Instead of introducing a breaking change, create a new isSimulatorOrEmulator function that actually returns a boolean.
Describe alternatives you've considered
Changing the isRealDevice function. This would cause breaking changes.
Activity
NathanaelA commentedon Nov 27, 2020
cjohn001 commentedon Nov 28, 2020
Hello together,
I use the following code snippet to detect if I am on a simulator. So far I have not found any issues with it, maybe it helps you: