Open khamaileon opened 5 days ago
Thank you for your request. I'm not sure if this is supported on Android. Would you be willing to debug this yourself?
You just need to place a breakpoint in this line via Android Studio: https://github.com/capawesome-team/capacitor-firebase/blob/29eba4de9ba821d010974e7b57cbf1e63133cc7e/packages/messaging/android/src/main/java/io/capawesome/capacitorjs/plugins/firebase/messaging/FirebaseMessagingHelper.java#L78
Thank you for your support @robingenz
I set a breakpoint, but I'm not sure what I should look for. When I run the process, nothing stops.
Please take a look at this guide on how to debug an Android app.
Edit: You need to check that notifications.extras
has the values you are looking for. If notifications.extras
is empty, then it'sn ot supported on Android via this method.
Plugin(s)
Version
6.2.0
Platform(s)
Current behavior
I send notifications to iOS and Android, always including data (in this specific case: path and trip_id). When I call getDeliveredNotifications, I receive these two pieces of info in the iOS response, but not in the Android response.
iOS:
Android:
Expected behavior
Data should be in the Android response too.
Reproduction
https://github.com/capawesome-team/.capacitor-app
Steps to reproduce
Sorry, it's complicated to reproduce a complete test environment with a notification send.
Other information
No response
Capacitor doctor
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 6.2.0 @capacitor/core: 6.2.0 @capacitor/android: 6.2.0 @capacitor/ios: 6.2.0
Installed Dependencies:
@capacitor/cli: 6.2.0 @capacitor/core: 6.2.0 @capacitor/android: 6.2.0 @capacitor/ios: 6.2.0
[success] iOS looking great! 👌 [success] Android looking great! 👌
Before submitting