Apple Swift

By admin | Uncategorized
22 Jun 2014

This Syntax did not work, function didn’t get called.

    func applicationDidRegisterForRemoteNotificationsWithDeviceToken(deviceToken: NSData){
NSLog("My token is: %@", deviceToken)
}

This works:

func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData!) {
   NSLog("My token is: %@", deviceToken)
}

Comments are closed.