-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat: add emulator detection property to static context #154
feat: add emulator detection property to static context #154
Conversation
- Implemented `isEmulator` method to detect if the app is running on an emulator. - Integrated emulator detection into the static context cache. - Added assertions to verify emulator detection in static context. - Ensured static context includes the new `\$is_emulator` property.
posthog-android/src/main/java/com/posthog/android/internal/PostHogAndroidContext.kt
Show resolved
Hide resolved
@thisames please add a changelog entry =) |
@thisames would you be willing to add to our taxonomy on the backend/frontend as well? See example https://github.com/PostHog/posthog/blob/46e6624cd9b314c67cd1f076f41eda901cd9b1f6/frontend/src/lib/taxonomy.tsx#L844-L848 |
sure! |
Description
This PR adds emulator detection to the static context and updates the tests to verify this functionality.
isEmulator
method to detect if the app is running on an emulator.\$is_emulator
property.Motivation and Context
A crucial property for future use as a filter.
#113
How Has This Been Tested?
The tests have been updated to include checks for the new
\$is_emulator
property in the static context.I tested it manually on both an emulator and a physical device.
Checklist