Instance Propertymochidev.swift-webpush 0.4.2WebPush
id
The action’s identifier.
var id: String
This can be used when handling an action from a service worker directly.
The action’s identifier.
var id: String
This can be used when handling an action from a service worker directly.
import WebPush
struct NotificationAction
An associated action for a notification when it is displayed to the user.
enum PushMessage
Common Push Message types.
@frozen struct String
A Unicode string value that is a collection of characters.
init(from decoder: any Decoder) throws
var destination: URL
The destination that will be opened when the action’s button is pressed.
var icon: URL?
The URL of an icon to display with the action.
var label: String
The action button’s label.
enum CodingKeys
The keys used when encoding NotificationAction
.