-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
[expo 34]Android only: get duplicate push notification when use react-native-firebase with Expokit #5304
Comments
I know you guys are focusing on Bare Workflow currently but we cannot use it due to OTA feature. I really hope someone can help us with this issue ... |
After research, I think I found out the solution/workaround now.
|
Not sure whether we should update document to add this step in. |
Hey. I had the same issue. I debugged the entire codebase to understand what was going on here and I came to a final solution that doesn't involve changing anything on standalone apps (either built through Turtle or ExpoKit). If you are sending the notification using FCM by yourself you can't send the "notification": null,
"data": {
"experienceId": "@username/project",
"title": "Your title",
"message": "Your body",
"body": { "your": "JSON data" },
"channelId": "default",
}, If your 🚨 |
Please close this as a duplicate of #4450. |
@derekstavis I do not think it is duplicate. My issue is related to
However in official doc, it miss the first step |
@derekstavis I can confirm that I can send "notification" body without duplicate notifications, maybe because I installed React-native-firebase in my app. BTW I also comment out FCM section (below) in
Added React-native-firebase instead:
|
@changLiuUNSW can you confirm that without the changes you are making to the manifest, the change suggested above regarding format for the notifications payload doesn't fix the issue? |
@cruzach I do not have a change to test it, because my app is ejected and I do not use Expo to manage the push notification anymore. |
Closed via #5308 |
My app is ejected from expokit 34 and we installed react-native-firebase for push notification and analytics.
Currently we have an issue that for each push notification we get it twice in Android:
I suspect expokit may have some code for the notification which is duplicated with
react-native-firebase
.Is there any solution or workaround for now? This issue has blocked us from release, please help !
The text was updated successfully, but these errors were encountered: