TKUINotificationManagerDelegate

public protocol TKUINotificationManagerDelegate : AnyObject

Undocumented

  • Check and, if necessary, ask for notification permissions. If no permissions are granted, this should then also directly show an appropriate alert about how to enable them.

    Declaration

    Swift

    func notificationsPermissionsNeeded() async -> Bool

    Return Value

    Whether notifications are enabled for this device or permissions are not determined

  • notificationRequireUserToken() Default implementation, asynchronous

    Called before subscribing to push notifications for a specifc trip.

    This should then make sure that TKServer.shared.userToken is set before returning. If this can’t be set, it should throw an error.

    Only needed to implement, when enabling push notification-based trip notifications

    Default Implementation

    Declaration

    Swift

    func notificationRequireUserToken() async throws