From c6f321862bf0bb7006462b9c7b4b7e833a1d868c Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 24 Aug 2023 16:07:16 -0700 Subject: Add analytics event for when the app is opened from a notification (#1270) * Add analytics event for when the app is opened from a notification * Tweak notification ID --- src/lib/notifications/notifications.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/notifications') diff --git a/src/lib/notifications/notifications.ts b/src/lib/notifications/notifications.ts index 2a9ed8706..88ebed044 100644 --- a/src/lib/notifications/notifications.ts +++ b/src/lib/notifications/notifications.ts @@ -2,6 +2,7 @@ import * as Notifications from 'expo-notifications' import {RootStoreModel} from '../../state' import {resetToTab} from '../../Navigation' import {devicePlatform, isIOS} from 'platform/detection' +import {track} from 'lib/analytics/analytics' const SERVICE_DID = (serviceUrl?: string) => serviceUrl?.includes('staging') @@ -89,6 +90,7 @@ export function init(store: RootStoreModel) { store.log.debug( 'User pressed a notification, opening notifications tab', ) + track('Notificatons:OpenApp') resetToTab('NotificationsTab') } }, -- cgit 1.4.1