B4i Library UserNotificationCenter class

Erel

Administrator
Staff member
Licensed User
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:



See the attached example
 

Attachments

Jmu5667

Well-Known Member
Licensed 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