Expo notifications configuration guide
Expo notifications are already preconfigured in this template. However, you still have to provide some secrets and keys in order to use them across your applications that uses this template.
Expo Go doesn't require any additional configuration so you can check notifications by copying push token (from Settings screen) and test notifications (on RL device) on expo.dev/notifications tool.
Usage in expo dev client (expo run:[android:ios])
- Make sure you have created your account in expo.dev.
- Sign in to your account using
yarn run login(orexpo logininside project directory). - Follow platform specific configuration.
Android
- Configure firebase to get
google-services.jsonfile - follow this guide. - Make sure that you have changed your
ownername inapp.json. - Put your
google-services.jsonin a project directory and provide path to it inapp.jsoninandroidsection ex.:
{
"expo": {
...,
"owner": "@binarapps",
...,
"android": {
"googleServicesFile": "./path/to/google-services.json"
}
}
}
- Provide your
experienceIdinextrasection inapp.jsontypically it follows this scheme -@owner/slugex.:
{
"expo": {
...,
"owner": "@binarapps",
"slug": "expo-typescript-template",
...,
"extra": {
"experienceid": "@binarapps/expo-typescript-template"
}
}
}
iOS
iOS notification credentials are automatically generated (paid apple developer account is required to make them working).
You can check this guide how to setup push notifications on iOS.
Extending expo-notifications config
If u need additional expo-notifications config follow this guide.