AirshipPushProtocol
public protocol AirshipPushProtocol : AirshipBasePushProtocol
Airship Push protocol.
-
Quiet time settings. Setting this value only sets the start/end time for quiet time. It still needs to be enabled with
quietTimeEnabled
. The timzone can be set withtimeZone
.Declaration
Swift
var quietTime: QuietTimeSettings? { get set }
-
Notification status updates
Declaration
Swift
var notificationStatusPublisher: AnyPublisher<AirshipNotificationStatus, Never> { get }
-
notificationStatusUpdates
AsynchronousNotification status updates
Declaration
Swift
var notificationStatusUpdates: AsyncStream<AirshipNotificationStatus> { get async }
-
notificationStatus
AsynchronousGets the current notification status
Declaration
Swift
var notificationStatus: AirshipNotificationStatus { get async }
-
enableUserPushNotifications(fallback:
Asynchronous) Enables user notifications on this device through Airship.
Note
The result of this method does NOT represent the state of the userPushNotificationsEnabled flag, which will be invariably set to
true
after the completion of this call.Declaration
Swift
@discardableResult func enableUserPushNotifications(fallback: PromptPermissionFallback) async -> Bool
Parameters
fallback
The prompt permission fallback if the display notifications permission is already denied.
Return Value
true
if user notifications are enabled at the system level, otherwisefalse
.