Question by
MGGDev · Dec 18, 2018 at 11:38 AM ·
c#androidnotificationservices
Disable/Enable Firebase Notifications
Hello.
I am using Firebase SDK to handle notifications on android, and it is working fine. How can I lets the user disable/enable notifications?
I tried this method, but it didn't work.
if (VNotifications.Value)
{
Firebase.Messaging.FirebaseMessaging.TokenReceived += OnTokenReceived;
Firebase.Messaging.FirebaseMessaging.MessageReceived += OnMessageReceived;
}
else
{
Firebase.Messaging.FirebaseMessaging.TokenReceived -= OnTokenReceived;
Firebase.Messaging.FirebaseMessaging.MessageReceived -= OnMessageReceived;
}
Comment
Your answer
Follow this Question
Related Questions
Screenshot on Android 2 Answers
user can't log into google play services 1 Answer
Determine Wifi adapter address on Android 0 Answers
What's wrong with my audiostream on android? 0 Answers
anyone want to make a game? 1 Answer