ACNotificationHandler

public class ACNotificationHandler

ACNotification handler parses the content of a push notification and extracts Activeconnect information. If the push notification is an Activeconnect authentication request the delegat’s presentAuthenticationUI is called with the decoded authentication request and the device that the request is for. The client should call the processNotification method when it receives a push notification. If processNotification indicates that the notification is an Activeconnect notification no further action is required. The client should carry out notification specific actions by implementing the ACNotificationHandlerDelegate protocol.

  • Data structure that represents the result of the processNotification method If the notification is an Activeconnect notification, the activeconnectNotification property will be true.

    See more

    Declaration

    Swift

    public struct NotificationHandlerResult
  • Initializer

    Declaration

    Swift

    public init(delegate: ACNotificationHandlerDelegate?)
  • Examines the content of a push notification and calls appropriate delegate methods to perform notification specific actions. If the notification is an Activeconnect notification the activeconnectNotification property of the result will be true. Methods of the delegate will be called on the main thread.

    • userInfo: The userInfo received in the app delegate’s didReceiveRemoteNotification method
    • registeredDevices : An array containing the accounts registered on the current device
    • NotificationHandlerResult

    Declaration

    Swift

    public func processNotification(userInfo: [AnyHashable : Any], registeredDevices: [ACMobileDevice]) -> NotificationHandlerResult

    Return Value