tony9099
tony9099

Reputation: 4727

Removing a user from Firebase

I am using Google's Firebase to manage some of the back end aspects of my mobile application.

Mainly I am using it for authentication with email as well as sending push notifications.

Currently, I have around 10 users who have been registered for a push notification token.

My question is that, I want to send a notification to only 8 users. Is this possible, because I can't seem to find a location where I can select the users.

I tried disabling the users from the Authentication tab but that seems not to make it work as authenticated users and Push-registered users seem to be different.

Upvotes: 0

Views: 348

Answers (1)

Frank van Puffelen
Frank van Puffelen

Reputation: 599341

You can target FCM messages:

  • To the iOS or Android app that is being used (through the Console only).
  • To an Analytics audience that the user of the app is part of (through the Console only).
  • To a topic the app instance is subscribed to (through the Console and the API).
  • To a group of devices, if you know their group ID (through the Console and the API).
  • To a specific device instance (i.e. a specific app on a specific phone) if you know their instance ID token (through the Console and the API).

There is no way in the Firebase console to select the users to send a message to. In fact: Firebase Cloud Messaging has no concept of a user, all it knows is the token that identifies the app that it's part of on the device that it's installed on.

Upvotes: 1

Related Questions