chore: update
This commit is contained in:
@@ -28,6 +28,11 @@ export async function getExpoPushToken(): Promise<string | null> {
|
||||
});
|
||||
}
|
||||
|
||||
const tokenData = await Notifications.getExpoPushTokenAsync();
|
||||
return tokenData.data;
|
||||
try {
|
||||
const tokenData = await Notifications.getExpoPushTokenAsync();
|
||||
return tokenData.data;
|
||||
} catch {
|
||||
// Google Play Services absent (ex: GrapheneOS) — push non disponible
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user