I originally asked this question on the Xamarin.iOS group but I think the folks around here are the ones who can help:
I've integrated push notifications with FCM in my Xamarin iOS and Android projects. My push notifications are coming to my app correctly, however when a user comes to a specific page of my application I'd like to clear all notifications from the notification center. I created a DependencyService to clear notifications and call it in the OnAppearing() method of that specific page. In Android, it works beautifully. However in iOS I can't seem to get it to work. I tried calling this: UIApplication.SharedApplication.CancelAllLocalNotifications();
but that seems to only be for local notifications. After a bit of research from the apple documentation this seems possible, https://developer.apple.com/documentation/usernotifications/unusernotificationcenter/1649502-removealldeliverednotifications
however I don't know how I would implement it in my code.
Any help would be greatly appreciated!