Update translations.
This commit is contained in:
@@ -52,14 +52,13 @@ async function registerForPushNotificationsAsync() {
|
||||
|
||||
//Write the FCM token to database.
|
||||
|
||||
const result = await client.mutate({
|
||||
await client.mutate({
|
||||
mutation: UPDATE_FCM_TOKEN,
|
||||
variables: {
|
||||
email: (await getCurrentUser()).email,
|
||||
token: { [pushTokenString]: { pushTokenString, platform: Platform.OS, timestamp: Date.now() } },
|
||||
},
|
||||
});
|
||||
console.log("FCM token updated in database:", result);
|
||||
return pushTokenString;
|
||||
} catch (error) {
|
||||
throw error
|
||||
|
||||
Reference in New Issue
Block a user