I have a mobile app written in Xamarin for Droid and IOS platforms. I'm receiving Push notifications on the lock screen for Droid via Firebase messaging and I'm receiving IOS push notifications from my server via Apple APNS as remote notifications successfully.
Each Push notification represents an alert from my server.
When I tap on the push notification it will launch my app and navigate to a list of alerts received from the server. This works fine.
Now the problem....
I also have a requirement, whereby the user can ignore the push notification and go straight into my app and the alerts list page, select the alert received and Mark As Read/Mark as Delete. If they do this, then the Push Notification on the lock screen for this alert needs to disappear.
Is it possible on Droid and IOS to acknowledge a push notification from code (not from a user's tap) ?