Skip to content

Commit 51a99ba

Browse files
Merge upstream develop
2 parents 9b3580e + de80529 commit 51a99ba

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/polycentric/src/common/lib/notifications/useNotificationNavigation.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as Linking from 'expo-linking';
22
import * as Notifications from 'expo-notifications';
33
import { router } from 'expo-router';
44
import { useEffect } from 'react';
5+
import { Platform } from 'react-native';
56

67
/**
78
* Navigate in response to a tapped push notification. The notifications
@@ -33,6 +34,9 @@ export function useNotificationNavigation(ready: boolean) {
3334
useEffect(() => {
3435
if (!ready) return;
3536

37+
// Push notifications are native-only here.
38+
if (Platform.OS === 'web') return;
39+
3640
let cancelled = false;
3741

3842
// Cold start: the app was launched by tapping a notification.

0 commit comments

Comments
 (0)