Android-SmartWebView icon indicating copy to clipboard operation
Android-SmartWebView copied to clipboard

want to send notification to all app users

Open prasadneve opened this issue 3 years ago • 2 comments

Hello, I want send notification to all users without token, how can i send it

prasadneve avatar Dec 08 '20 12:12 prasadneve

not possible, google wants you to use store device tokens on your end and push notifications to them individually.

mgks avatar Sep 20 '21 07:09 mgks

first edit the channel name public static String asw_fcm_channel = "general";

then go to fcm_token() and add the line FirebaseMessaging.getInstance().subscribeToTopic(asw_fcm_channel);

done this in postman use the following method

{ "message":{ "topic":"general", "notification":{ "title":"MESSAGE TEST", "body":"THIS IS A TEST" } } }

The end and that's it, everyone on the general channel will receive notification

SrFortes avatar Nov 12 '23 00:11 SrFortes