0

I am creating a Flutter app in which I'd like to use Firebase Messaging to broadcast a custom message, via push notification, to all users of a certain app. What is the best way to do this in Flutter?

The equivalent of doing this in the Firebase Cloud Messaging console appears to be by targeting a user segment. On the 'Compose notification' screen, you'd set your target to:

target user if app = com.example

And this would send your push notification to all users who have this app installed. The README of the firebase_messaging Flutter package doesn't appear to show an equivalent.

Topics do not seem to be ideal, because they involve the extra step of programmatically signing up the user to a topic. It seems much more streamlined to just target by app package ID, as in the 'Compose notification' screen?

user2181948
  • 756
  • 2
  • 20
  • 44
  • https://stackoverflow.com/a/62596533/12037365 refer my answer, it's a working code .please upvote if your problem solved – Mr vd Oct 05 '20 at 06:55

0 Answers0