Skip to content
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

Set is_emulator property #157

Closed
2 of 4 tasks
marandaneto opened this issue Aug 12, 2024 · 3 comments · Fixed by #190
Closed
2 of 4 tasks

Set is_emulator property #157

marandaneto opened this issue Aug 12, 2024 · 3 comments · Fixed by #190
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@marandaneto
Copy link
Member

marandaneto commented Aug 12, 2024

Description

Description

https://posthog.com/questions/how-to-filter-out-usage-from-i-os-android-simulators-emulators

  • iOS
  • Android
  • RN
  • Flutter will get it for free once Android and RN is updated.

Taxonomy added.

@marandaneto marandaneto added enhancement New feature or request help wanted Extra attention is needed labels Aug 12, 2024
@marandaneto
Copy link
Member Author

marandaneto commented Aug 12, 2024

Something like this can be done https://stackoverflow.com/questions/458304/how-can-i-programmatically-determine-if-my-app-is-running-in-the-iphone-simulato/45329149#45329149 or compile flags:

#if targetEnvironment(simulator)
    // Simulator
#else
    // Device
#endif

@thisames
Copy link

Also like this https://github.com/fluttercommunity/plus_plugins/blob/a71a27c5fbdbbfc56a30359a1aff0a3d3da8dc73/packages/device_info_plus/device_info_plus/ios/Classes/FPPDeviceInfoPlusPlugin.m#L56-L66 @thisames wanna take this one?

I would love to, but my MacBook stopped working last month. I'm currently only using Linux. 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants