Notifications working

This commit is contained in:
Adolfo Reyna
2022-12-10 21:56:49 -05:00
parent a951dec46e
commit f8cad0b55b
5 changed files with 5771 additions and 9956 deletions

2
App.js
View File

@@ -52,7 +52,7 @@ async function registerForPushNotificationsAsync() {
alert('Failed to get push token for push notification!');
return;
}
token = (await Notifications.getExpoPushTokenAsync()).data;
token = (await Notifications.getExpoPushTokenAsync({ projectId: "c2bb4d4e-4d4d-4f34-a873-7cad78c6023c", })).data;
console.log(token);
} else {
alert('Must use physical device for Push Notifications');