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');

View File

@@ -25,7 +25,8 @@
"foregroundImage": "./assets/icon.png",
"backgroundColor": "#FFFFFF"
},
"package": "com.emi.social"
"package": "com.emi.social",
"googleServicesFile": "./google-services.json"
},
"web": {
"favicon": "./assets/favicon.png"
@@ -37,15 +38,7 @@
},
"plugins": [
[
"expo-notifications",
{
"icon": "./local/assets/notification-icon.png",
"color": "#ffffff",
"sounds": [
"./local/assets/notification-sound.wav",
"./local/assets/notification-sound-other.wav"
]
}
"expo-notifications"
]
]
}

8436
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -11,6 +11,7 @@
},
"dependencies": {
"@react-native-async-storage/async-storage": "~1.17.3",
"@react-native-firebase/app": "^16.4.6",
"@react-navigation/bottom-tabs": "^6.2.0",
"@react-navigation/native": "^6.0.8",
"@react-navigation/native-stack": "^6.5.0",
@@ -26,7 +27,6 @@
"moment": "^2.29.1",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-google-material-icons": "^1.0.4",
"react-native": "0.70.5",
"react-native-autoheight-webview": "^1.6.1",
"react-native-hyperlink": "0.0.19",

7270
yarn.lock

File diff suppressed because it is too large Load Diff