- Home /
Disable/enable local notifications on Android and iOS
I have implemented repetitive local notification system like below:
AndroidNotificationChannel notificationChannel = new AndroidNotificationChannel ()
{
Id = "test_reminder_channel",
Name = "Test Reminder Channel",
Description = "Reminder notifications",
Importance = Importance.High,
};
AndroidNotificationCenter.RegisterNotificationChannel (notificationChannel);
AndroidNotification notification = new AndroidNotification
{
Title = "Reminder from Test",
Text = "Turn daily Wheel of Luck",
FireTime = DateTime.Now.AddSeconds (5),
RepeatInterval = new TimeSpan (0, 0, 5),
ShouldAutoCancel = true,
SmallIcon = "icon_small",
LargeIcon = "icon_large"
};
AndroidNotificationCenter.SendNotification (notification, notificationChannel.Id);
Now I need to disable or enable notifications from settings menu. How can I achieve this? Any help appreciated. Thanks
Comment
Your answer
Follow this Question
Related Questions
How to display a video behind gui on mobile 2 Answers
Button as a child of a button 0 Answers
Scriptable object doesn't load in the build of the project 1 Answer
System.Diagnostics.Process on iOs and Android 1 Answer
XR Descriptor not found 1 Answer