I am using https://dev.to/serhii_korol_ab7776c50dba/creating-push-notifications-for-android-in-net-maui-2ak4 sample for send FCM messages with specific topic.
<code>FirebaseMessaging messaging = FirebaseMessaging.GetMessaging(app);
var message = new Message()
{
Topic = "my_topic123",
Data = _Data,
Android = new AndroidConfig { Priority = Priority.High },
}
string response = await messaging.SendAsync(message);
</code>
<code>FirebaseMessaging messaging = FirebaseMessaging.GetMessaging(app);
var message = new Message()
{
Topic = "my_topic123",
Data = _Data,
Android = new AndroidConfig { Priority = Priority.High },
}
string response = await messaging.SendAsync(message);
</code>
FirebaseMessaging messaging = FirebaseMessaging.GetMessaging(app);
var message = new Message()
{
Topic = "my_topic123",
Data = _Data,
Android = new AndroidConfig { Priority = Priority.High },
}
string response = await messaging.SendAsync(message);
The problem is that I receive all topics no matter if register for another: FirebaseMessaging.Instance.SubscribeToTopic("my_topic");
What I need to perform to receive only specific topic which I subscribed?