I send with the tag of the userId and have the channel id in the jsonString, among others
var results = await hub.SendFcmNativeNotificationAsync(jsonString, tag);
The problem I have is that it sends the message to everybody, not just the one user. How do I filter so just the one user gets the message
I register my app when the user signs on with tag for the userId.
await CrossAzurePushNotification.Current.RegisterAsync(new string[] { UserContext.UserIdentifier });
I setup a few channels
notificationManager.CreateNotificationChannel(new NotificationChannel( NotificationConstants.NOTIFICATION_MAILERS_CHANNEL_ID, "Mailers", NotificationImportance.High)); ...
I send with the tag of the userId and have the channel id in the jsonString, among others var results = await hub.SendFcmNativeNotificationAsync(jsonString, tag);
The problem I have is that it sends the message to everybody, not just the one user. How do I filter so just the one user gets the message