I upgraded my expo push notifications and whenever I run it on Android, I get the below error:
Exception occurred while executing exported method getDevicePushTokenAsync on module ExpoPushTokenManager. Please set your Project ID. A valid firebase project ID is required to communicate with Firebase server APIs: It identifies your project with Goolge.
Can anyone tell me where I am supposed to put the project ID? I have it linked up in my project in my config.js
file but I feel like it is also supposed to be in my app.json
file, just not 100% sure where.
{
"expo": {
"name": "Galavant",
"slug": "Galavant",
"platforms": ["ios", "android", "web"],
"version": "2.0.8",
"orientation": "portrait",
"icon": "./assets/logo.png",
"splash": {
"image": "./assets/logo_original.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"ios": {
"usesAppleSignIn": true,
"infoPlist": {
"NSCameraUsageDescription": "So you can add photos to your profile.",
"NSPhotoLibraryUsageDescription": "So you can add photos to your profile.",
"NSLocationWhenInUseUsageDescription": "So you can connect with people nearby."
},
"supportsTablet": true,
"bundleIdentifier": "com.test.test",
"buildNumber": "0.0.1",
"config": {
"googleSignIn": {
"reservedClientId": "com.googleusercontent.apps.12346789"
}
}
},
"android": {
"package": "com.test.test",
"useNextNotificationsApi": true,
"versionCode": 5,
"config": {
"googleMaps": {
"apiKey": "asdkjfkasjdf9837983rlkajshf"
},
"googleSignIn": {
"apiKey": "asdkjfkasjdf9837983rlkajshf",
"certificateHash": "33345w4sdfasdkjfkasjdf9837983srlkajshf"
}
},
"permissions": [
"ACCESS_COARSE_LOCATION",
"ACCESS_FINE_LOCATION",
"CAMERA",
"MANAGE_DOCUMENTS",
"READ_CONTACTS",
"READ_CALENDAR",
"WRITE_CALENDAR",
"READ_EXTERNAL_STORAGE",
"READ_PHONE_STATE",
"RECORD_AUDIO",
"USE_FINGERPRINT",
"VIBRATE",
"WAKE_LOCK",
"WRITE_EXTERNAL_STORAGE",
"com.anddoes.launcher.permission.UPDATE_COUNT",
"com.android.launcher.permission.INSTALL_SHORTCUT",
"com.google.android.c2dm.permission.RECEIVE",
"com.google.android.gms.permission.ACTIVITY_RECOGNITION",
"com.google.android.providers.gsf.permission.READ_GSERVICES",
"com.htc.launcher.permission.READ_SETTINGS",
"com.htc.launcher.permission.UPDATE_SHORTCUT",
"com.majeur.launcher.permission.UPDATE_BADGE",
"com.sec.android.provider.badge.permission.READ",
"com.sec.android.provider.badge.permission.WRITE",
"com.sonyericsson.home.permission.BROADCAST_BADGE"
]
},
"notification": {
"icon": "./assets/PushNotification.png"
}
}
}