evollu / evollu/react-native-fcm
Is there a way to know the topic when receiving a notification sent via topic messaging?
- Dominant language
- Java
- Stars
- 1.7k
- Forks
- 661
- PR merge metrics
- No merged PRs in 30d
Description
In my app, I subscribed to multiple topic. I need to know from which topic am I receive the notification. I guess this not possible atm?
In Android, there is `RemoteMessage.getFrom()` method which return the sender (senderId or topic): https://firebase.google.com/docs/reference/android/com/google/firebase/messaging/RemoteMessage.html#getFrom()
But I can't find an equivalent on iOS.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the notification handling API in react-native-fcm and compare the Android RemoteMessage.getFrom() behavior referenced in the issue with the iOS Firebase messaging API. Done means determining whether the receiving topic can be exposed on iOS and documenting or implementing a cross-platform equivalent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, firebase, ios, react-native
- Domain
- api, mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100