-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Push notifications on Android do not arrive #209
Comments
|
I have no other logs in addition to what I shared. In fact, I believe that point 4 you indicated me, it could do to my case. But I can't understand where to put the code on Expo. It could be that I have to put it on node_modules/Expo-Notifications/Android/Src/Main/Java/Expo/Modules/Notifications/Service/ExpoFirebaseMessaginvice.kt? |
Yes, due to how Android manifests route intents, you'd need to override whatever other Firebase Messaging Service is registered in the manifest in order to route Braze specific intents to it. |
Ok, I modified expafirebasemessaginivice.kt from: import com.google.firebase.messaging.FirebaseMessagingService open class ExpoFirebaseMessagingService : FirebaseMessagingService() { override fun onMessageReceived(token: String) = firebaseMessagingDelegate.onMessageReceived(remoteMessage) to: import com.google.firebase.messaging.FirebaseMessagingService open class ExpoFirebaseMessagingService : FirebaseMessagingService() { override fun onMessageReceived(remoteMessage: RemoteMessage) { } I tried to send a notification from Expo push notifications Tools (URL) but I don't receive it. What am I doing wrong? |
|
@steunobravo make sure you're on the latest android version and have added POST_NOTIFICATIONS in your manifest |
Yes I had already POST_NOTIFICATIONS in my manifest:
Is it possible that I need to configure the Braze SDK with a different Firebase project than the one used by Expo? |
Since this issue is more directly associated with the Expo plugin, I am closing out this issue as a dupe of this ticket in our Expo repo. Please continue to converse on that ticket to ensure that nothing gets lost in the mix - thank you! |
Which Platforms?
Android
Which React Native Version?
0.70.8
Which @braze/react-native-sdk SDK version?
4.1.0
Repro Rate
100%
Steps To Reproduce
After adding to the Braze project, when from the Tool of Expo notifications (https://expo.dev/Notifications) I try to send a notification on an Android device, the device does not receive the push notification.
If, on the other hand, I remove the Braze dependencies and try to send a notification, the device receives notifications again.
Expected Behavior
Even after setting braze, notifications must continue to work the same.
Actual Incorrect Behavior
Android devices do not receive notifications
Verbose Logs
Braze v24.3.0 .Braze FirebaseMessagingService( 1683): Remote message did not originate from Braze. Not consuming remote message: com.google.firebase.messaging.RemoteMessage
Additional Information
No response
The text was updated successfully, but these errors were encountered: