Notifications working
This commit is contained in:
2
App.js
2
App.js
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user