IOS and Android Push Notifications
We are to send push notifications through novu to ios and android devices the pushes work in app but not as the push itself.
Any idea?
4 Replies
Hi @Laiix, I'm an AI assistant for Novu. While a team member reviews this question, I'll look through relevant sources and see if I can provide suggestions. Please tag @Ask Inkeep with any follow-up questions.
-----------------------------
While I generate an answer, here are some sources that might be helpful:
* How to send PUSH notifications to iOS devices with FCM using Novu
* How to send push notifications in an Android app (react native) with FCM and Novu
* Push Channel Introduction
* Zulip
-----------------------------
Answer
It sounds like your push notifications are being received in your app but not as standalone push notifications on the device. For this scenario, ensure that:
1. For Android, the notification's priority is set properly. High-priority messages are delivered immediately. Adjust the priority in the payload if needed. Check the guide on sending push notifications in an Android app with FCM and Novu for more details on setting priorities (1) .
2. For iOS, test sending a push notification directly through the Firebase console to ensure your device setup and token are correct. This can help isolate if the issue is with the configuration on the Firebase or iOS side. Follow the steps in the guide for sending push notifications to iOS devices with FCM using Novu (2) .
3. Ensure your device tokens or identifiers are correctly stored in the subscriber profile in Novu. If a device token is incorrect or not properly configured, push notifications may fail to deliver externally. The documentation on using the push channel with Novu outlines the process to add a push channel provider, configure workflows, and store device tokens (3) .
4. Review any provider-specific settings and configurations. Novu supports multiple providers for push notifications, including FCM for both iOS and Android. It's crucial to ensure that all provider-specific configurations are correctly set up according to the documentation.
If these steps don't resolve the issue, it could be related to the notification payload or specific configurations within your Novu workflow. Ensure that your pus
h notification payloads are correctly configured to trigger the desired type of notification on each platform.
@Laiix
Could you please explain a bit more?
the pushes work in app but not as the push itself.
these overrides were missing to see the push itself
def overrides = [
fcm: [
type: "data",
data: payload,
apns: [
"payload": [
"aps": [
"alert": [
"title": message.subject,
"body": message.body
],
"sound": "default",
"badge": 1
]
]
],
android: [
notification: [
"title": message.subject,
"body": message.body,
"defaultSound": true,
]
]
]
]