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?