posthog-ios icon indicating copy to clipboard operation
posthog-ios copied to clipboard

Set `is_emulator` property

Open marandaneto opened this issue 1 year ago • 1 comments

Description

Description

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

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

Taxonomy added.

marandaneto avatar Aug 12 '24 13:08 marandaneto

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

marandaneto avatar Aug 12 '24 13:08 marandaneto

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?

marandaneto avatar Aug 27 '24 14:08 marandaneto

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. 😅

thisames avatar Aug 27 '24 14:08 thisames