Push Notification

Handles Push Notification related requests with IMS web services. Unless otherwise specified, requests performed by this service are on the current Device.

The PushNotification uses the Device API and it is seperated from Device module considering any new features may be implemented in future to expand PushNotificationService.

Parameters:

  • deviceToken: user's deviceToken ID

To set the push notification token to DriveSync, the following API can be used.

Concrete example

let service = PushNotificationService()
service.setToken(deviceToken: deviceToken, then: { result in
    switch result {
    case .success(_):
        // passing token successful
        break
    default:
        // error
    }
})

Last updated