B4i Library UserNotificationCenter class

A class that creates local notifications based on the newer iOS 10+ API.
The notifications are configured to show even when the app is in the foreground.
You can also add actions to the notifications:

SS-2018-12-20_16.03.33.png


See the attached example
 

Attachments

a small update :) for those who wish to clear a delivered notification. sorry if this is not the right place to post this.

Code:
' // https://developer.apple.com/documentation/usernotifications/unusernotificationcenter/1649500-removedeliverednotifications
Public Sub RemoveDeliveredNotifications (Identifiers As List)
    NotificationCenter.RunMethod("removeDeliveredNotificationsWithIdentifiers:", Array(Identifiers))
End Sub
 
Last edited:
Back
Top