adding googles json

This commit is contained in:
Adolfo Reyna
2022-12-10 20:11:21 -05:00
parent d676ba06c6
commit a951dec46e
2 changed files with 47 additions and 9 deletions

17
App.js
View File

@@ -40,15 +40,6 @@ Notifications.setNotificationHandler({
});
async function registerForPushNotificationsAsync() {
if (Platform.OS === 'android') {
Notifications.setNotificationChannelAsync('default', {
name: 'default',
importance: Notifications.AndroidImportance.MAX,
vibrationPattern: [0, 250, 250, 250],
lightColor: '#FF231F7C',
});
}
let token;
if (Device.isDevice) {
const { status: existingStatus } = await Notifications.getPermissionsAsync();
@@ -67,6 +58,14 @@ async function registerForPushNotificationsAsync() {
alert('Must use physical device for Push Notifications');
}
if (Platform.OS === 'android') {
Notifications.setNotificationChannelAsync('default', {
name: 'default',
importance: Notifications.AndroidImportance.MAX,
vibrationPattern: [0, 250, 250, 250],
lightColor: '#FF231F7C',
});
}
console.log(token);
return token;

39
google-services.json Normal file
View File

@@ -0,0 +1,39 @@
{
"project_info": {
"project_number": "587556762784",
"project_id": "emi-fellowship",
"storage_bucket": "emi-fellowship.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:587556762784:android:cada5e527a14e29ffec5c5",
"android_client_info": {
"package_name": "com.emi.social"
}
},
"oauth_client": [
{
"client_id": "587556762784-811ic14vvl67kbsins591ers2kgm77oo.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyA95FY2PNl2v7tH4o795dLO4lgmovKbuBc"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "587556762784-811ic14vvl67kbsins591ers2kgm77oo.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}