I have a solution here, not straight forward, but I feel it should work.
Step 1
- Create another webhook which will be triggered on User Event
- Disable email editable option for users
- When the webhook triggers, take user email address and update user’s forum ID in user database.
Step 2
- When user login in the mobile application, get user’s FCM/GCM ID
- Update FCM/GCM ID user database
- When topic/post event trigerrs
a) Send to all users through topics subscription, mention user’s FCM/GCM ID in data payload and skip showing the notification to that user
OR
b) Get users who are eligible to get notifications (having mobile app) except the one who has posted/replied and send to others (This is not a scalable solution, I suppose)
Any other suggestions or straight forward methods/approach available?