Skip to content

Commit

Permalink
feat: added $is_emulator property in event_properties (#24272)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisames authored Aug 12, 2024
1 parent 048a8f4 commit 536958a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/lib/taxonomy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,11 @@ export const CORE_FILTER_DEFINITIONS_BY_GROUP = {
description: 'The manufacturer of the device',
examples: ['Apple', 'Samsung'],
},
$is_emulator: {
label: 'Is Emulator',
description: 'Indicates whether the app is running on an emulator or a physical device',
examples: ['true', 'false'],
},
$device_name: {
label: 'Device Name',
description: 'Name of the device',
Expand Down
1 change: 1 addition & 0 deletions posthog/api/test/test_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def mocked_get_ingest_context_from_token(_: Any) -> None:
"$os_version": "14",
"$lib": "posthog-android",
"$lib_version": "3.0.0-beta.3",
"$is_emulator": True,
"$locale": "en-US",
"$user_agent": "Dalvik/2.1.0 (Linux; U; Android 14; sdk_gphone64_arm64 Build/UPB5.230623.003)",
"$timezone": "Europe/Vienna",
Expand Down

0 comments on commit 536958a

Please sign in to comment.