1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Attempt to fix #711

Why get device token would fail without error message?
This commit is contained in:
xmflsct
2023-03-09 14:04:48 +01:00
parent 5c461c0cd1
commit 9b9705ca23

View File

@ -14,7 +14,8 @@ export const updateExpoToken = async (): Promise<string> => {
const getAndSetToken = () =>
Notifications.getExpoPushTokenAsync({
projectId: '3288313f-3ff0-496a-a5a9-d8985e7cad5f',
applicationId: 'com.xmflsct.app.tooot'
applicationId: 'com.xmflsct.app.tooot',
devicePushToken: { type: Platform.OS === 'android' ? 'android' : 'ios', data: 'unknown' }
}).then(({ data }) => {
setGlobalStorage('app.expo_token', data)
return data