APNPayload

public class APNPayload

Representation of the server push notification payload.

  • Dictionary representation of the payload

    Declaration

    Swift

    public var payloadDictionary: [AnyHashable : Any]
  • JSON (SwiftyJSON) representation of the payload

    Declaration

    Swift

    public var payloadJSON: JSON { get }
  • Initialize a APNPayload with a server notification payload dictionary.

    Declaration

    Swift

    public init(dictionary: [AnyHashable : Any])
    Parameters
    dictionary

    Dictionary representation of the payload

  • A way to access values of the APNPayload instance using subscripts

    Declaration

    Swift

    public subscript(path: String) -> Any? { get }
    Parameters
    path

    Key path

  • Notification message type raw value

    Declaration

    Swift

    public var messageType: Int { get }
  • Notification message

    Declaration

    Swift

    public var message: String? { get }
  • APS Dictionary

    Declaration

    Swift

    public var apsDictionary: [String : Any?]? { get }
  • APS notification category

    Declaration

    Swift

    public var apsCategory: String? { get }
  • APS alert dictionary

    Declaration

    Swift

    public var alertDictionary: [String : Any?]? { get }
  • APS alert title

    Declaration

    Swift

    public var alertTitle: String? { get }
  • APS alert body

    Declaration

    Swift

    public var alertBody: String? { get }
  • A boolean value indicating whether the notificaiton is silent

    Declaration

    Swift

    public var isSilentNotification: Bool { get }
  • Usher Server notification info dictionary

    Declaration

    Swift

    public var infoDictionary: [String : Any?]? { get }
  • Usher Server notification info organization Id

    Declaration

    Swift

    public var infoOrgId: String? { get }
  • Usher Server notification info organization name

    Declaration

    Swift

    public var infoOrgName: String? { get }
  • Usher Server notification info badge ID

    Declaration

    Swift

    public var infoBadgeId: String? { get }
  • Usher Server notification info computer GUID

    Declaration

    Swift

    public var infoComputerGUID: String? { get }
  • Usher Server notification info session ID

    Declaration

    Swift

    public var infoSessionId: String? { get }
  • Usher Server notification info client name

    Declaration

    Swift

    public var infoClientName: String? { get }
  • Usher Server notification info client ID

    Declaration

    Swift

    public var infoClientId: String? { get }
  • Usher Server notification info QR code

    Declaration

    Swift

    public var infoQrCode: String? { get }
  • Usher Server notification info OTP code

    Declaration

    Swift

    public var infoOtpCode: String? { get }
  • Usher Server notification info server port number

    Declaration

    Swift

    public var infoServerPort: String? { get }
  • Usher Server notification info server host address

    Declaration

    Swift

    public var infoServerHost: String? { get }
  • Usher Server notification info system name

    Declaration

    Swift

    public var infoSystemName: String? { get }
  • Usher Server notification info application name

    Declaration

    Swift

    public var infoAppName: String? { get }
  • Usher Server notification info time

    Declaration

    Swift

    public var infoTime: TimeInterval { get }
  • Usher Server notification desktop pairing ID.

    Declaration

    Swift

    public var pairingId: String? { get }
  • Usher Server notification desktop code.

    Declaration

    Swift

    public var code: String? { get }
  • Boolean indicating if bluetooth unlock is enabled on Usher desktop.

    Declaration

    Swift

    public var isBluetoothOn: Bool { get }
  • Usher Server notification desktop unlock session ID.

    Declaration

    Swift

    public var sessionId: String? { get }
  • Usher Server notification desktop computer GUID.

    Declaration

    Swift

    public var computerGuid: String? { get }
  • Usher Desktop action result dictionary.

    Declaration

    Swift

    public var resultDictionary: [String : Any?]? { get }
  • Usher Desktop action result event type.

    Declaration

    Swift

    public var resultEvent: String? { get }
  • Usher Desktop action result message.

    Declaration

    Swift

    public var resultMessage: String? { get }
  • Usher Desktop action result computer name.

    Declaration

    Swift

    public var resultComputerName: String? { get }
  • A boolean value indicating the notification’s actions should not be handled.

    Declaration

    Swift

    public var notificationOnly: Bool { get }