diff --git a/App.js b/App.js index 092e8a8..4614ef5 100644 --- a/App.js +++ b/App.js @@ -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; diff --git a/google-services.json b/google-services.json new file mode 100644 index 0000000..4a302a2 --- /dev/null +++ b/google-services.json @@ -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" +} \ No newline at end of file