Class Veery

setAPNSToken(token : Data)

Let Veery known what is the APNs token of the device.

This should be called from AppDelegate in the didRegisterForRemoteNotificationsWithDeviceToken function

Parameters

Param name Type Usage
token Data Device token received from the APNs

Returns

Void

Usage

    import Veery

    @UIApplicationMain
    class AppDelegate: UIResponder, UIApplicationDelegate {

        var window: UIWindow?
        // TODO : create the veery object
        let veery = Veery()

        func application(_ application : UIApllication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool{
            //Override point for customization after application launch.
            // TODO : connect to veery
            veery.serviceConnect()
            return true
        }

        //....
        //....
        func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data){

        // Let Veery know the Device Token
        veery.setAPNSToken(token: deviceToken)

        }
        // .....
        // .....

    }

User interaction

none