Class Veery

apnsMessageHandler(_ userInfo: [AnyHashable : Any])

Transfers an APNs notification to Veery.

The APNs notifications that are supposed to be handled by Veery will have specific signature, so only messages for Veery will be handled by Veery.

This should be called from AppDelegate in the didReceiveRemoteNotification function


Param name Type Usage
userInfo [AnyHashable : Any] A dictionary that contains information related to the remote notification



Value Meaning
true the message were handled by veery (Veery signature valid)
false the message were not handled by veery (Veery signature not valid). In that case the message comes from another framework or from your own APNs servers


    import Veery

    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
            return true

        func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any],
                            fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> ()) -> Void {

        // If veery can handle the notification, just return

        if (veery.apnsMessageHandler(userInfo)){return }

        // Veery did not recognize the notification so it comes from another framework

        // Your own Handle code here

        // .....
        // .....


User interaction