Troubleshooting1 min read
Troubleshooting Push Notifications
Fix push notifications that do not arrive or do not open the right page in your app, for Firebase Cloud Messaging and OneSignal.
Notifications do not arrive
Check these in order:
- Integrations › Push notifications: Enable Push Notifications is on and saved.
- Provider setup:
- Firebase: both configuration files are uploaded, created for the same package name and bundle ID as your app. For iOS, an APNs key is uploaded in Firebase.
- OneSignal: the App ID is correct, and Android and iOS credentials are set in OneSignal.
- The installed app was built after push was set up. Provider changes need a new build.
- The user allowed notifications on the phone. Check the app's notification settings on the device.
- Your plan includes push notifications.
- You are sending to the right app. In Firebase, target the app registered with your package name or bundle ID.
Notifications arrive but do not open the page
- Open the notification's link must be on in Notification Behavior.
- Use the
urlorroutedata key, and point it to your website or an allowed domain. Other links are ignored. See Notification links.
No banner while the app is open
Turn on Show notifications while the app is open in Notification Behavior.
The permission prompt never appears
- Check When the app asks in the Permission Prompt. With Only through a manual bridge request, your website must call
wapp.permissions.request('notifications'). - iOS shows the system prompt only once. If the user declined, they must turn notifications on in the phone's settings; Offer to open Settings helps.
The build fails
A build stops when push is on but the Firebase file for that platform is missing or invalid. Upload the file, or turn push off, and build again.