SAPcpmsRemoteNotificationParameters

public struct SAPcpmsRemoteNotificationParameters

RemoteNotificationParameters can be used to add more parameters to a device registration. It might be useful for filtering on the SAPcpms cockpit Push Desk screen, before sending a message to group of devices.

  • This struct represents a device capability. Used in RemoteNotificationParameters.

    See more

    Declaration

    Swift

    public struct Capability
  • This struct represents a location. Used in RemoteNotificationParameters.

    See more

    Declaration

    Swift

    public struct LastKnownLocation
  • the type of the device, e.g.: iPhone, iPad

    Declaration

    Swift

    public let deviceType: String
  • group name, custom value

    Declaration

    Swift

    public let pushGroup: String
  • user’s prefered language

    Declaration

    Swift

    public let userLocale: String
  • user’s timezone

    Declaration

    Swift

    public let timeZone: String
  • cluster of device kinds, e.g.: tablets, phones

    Declaration

    Swift

    public let formFactor: String
  • device capabilities

    Declaration

    Swift

    public let capabilities: [Capability]
  • last know location of the device

    Declaration

    Swift

    public let lastKnownLocation: LastKnownLocation?
  • Static default value for deviceType It only gets evaluated the first time it is accessed, so it does not need to be computed over and over again.

    Declaration

    Swift

    public static let deviceModel: String
  • Static default value for userLocale It only gets evaluated the first time it is accessed, so it does not need to be computed over and over again.

    Declaration

    Swift

    public static let deviceLanguageCode: String
  • Static default value for timeZone It only gets evaluated the first time it is accessed, so it does not need to be computed over and over again.

    Declaration

    Swift

    public static let deviceTimeZone: String
  • Initializer for RemoteNotificationParameters

    Declaration

    Swift

    public init(deviceType: String = deviceModel, pushGroup: String = "", userLocale: String = deviceLanguageCode, timeZone: String = deviceTimeZone, formFactor: String = "", capabilities: [Capability] = [], lastKnownLocation: LastKnownLocation? = nil)

    Parameters

    deviceType

    (optional) the type of the device, e.g.: iPhone, iPad, default value: iOS

    pushGroup

    (optional) group name, default value: all

    userLocale

    (optional) user’s prefered language

    timeZone

    (optional) user’s timezone

    formFactor

    (optional) cluster of device kinds, e.g.: tablets

    capabilities

    (optional) device capabilities

    lastKnownLocation

    (optional) last know location of the device