From 536958a7265d375097d7ad9613ef958babee5744 Mon Sep 17 00:00:00 2001 From: thisames Date: Mon, 12 Aug 2024 04:55:22 -0300 Subject: [PATCH] feat: added $is_emulator property in event_properties (#24272) --- frontend/src/lib/taxonomy.tsx | 5 +++++ posthog/api/test/test_capture.py | 1 + 2 files changed, 6 insertions(+) diff --git a/frontend/src/lib/taxonomy.tsx b/frontend/src/lib/taxonomy.tsx index 53005ebd4ae5b..d015bc83661f1 100644 --- a/frontend/src/lib/taxonomy.tsx +++ b/frontend/src/lib/taxonomy.tsx @@ -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', diff --git a/posthog/api/test/test_capture.py b/posthog/api/test/test_capture.py index 2927f9f83a4ec..8107e2b874a8b 100644 --- a/posthog/api/test/test_capture.py +++ b/posthog/api/test/test_capture.py @@ -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",