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

  • UserNotificationCenter.zip
    3.5 KB · Views: 145

Jmu5667

Well-Known Member
Licensed User
Longtime User
a small update :) for those who wish to clear a delivered notification. sorry if this is not the right place to post this.

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