diff --git a/src/lib/notifications/notifications.ts b/src/lib/notifications/notifications.ts index 5acc6ab06d..be2b957d21 100644 --- a/src/lib/notifications/notifications.ts +++ b/src/lib/notifications/notifications.ts @@ -120,7 +120,11 @@ async function getPushToken() { const granted = (await Notifications.getPermissionsAsync()).granted notyLogger.debug(`getPushToken`, {granted}) if (granted) { - return Notifications.getDevicePushTokenAsync() + try { + return await Notifications.getDevicePushTokenAsync() + } catch (error) { + notyLogger.debug(`getPushToken: failed`, {safeMessage: error}) + } } }