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 login
inside project directory). - Follow platform specific configuration.
Android
- Configure firebase to get
google-services.json
file - follow this guide. - Make sure that you have changed your
owner
name inapp.json
. - Put your
google-services.json
in a project directory and provide path to it inapp.json
inandroid
section ex.:
{
"expo": {
...,
"owner": "@binarapps",
...,
"android": {
"googleServicesFile": "./path/to/google-services.json"
}
}
}
- Provide your
experienceId
inextra
section inapp.json
typically it follows this scheme -@owner/slug
ex.:
{
"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.