Skip to content
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

want to send notification to all app users #203

Open
prasadneve opened this issue Dec 8, 2020 · 2 comments
Open

want to send notification to all app users #203

prasadneve opened this issue Dec 8, 2020 · 2 comments
Labels

Comments

@prasadneve
Copy link

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

@mgks mgks added the question label Sep 20, 2021
@mgks
Copy link
Owner

mgks commented Sep 20, 2021

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

@SrFortes
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants