Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

6. Add the following implementation to the method named: application:didRegisterForRemoteNotificationsWithDeviceToken:

Code Block
 
func func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData) {        
	Appoxee.shared()?.didRegisterForRemoteNotificationsWithDeviceToken(deviceToken)
}

...

7. Add the following implementation to the method named: application:didReceiveRemoteNotification:

Code Block
 -func application(void)application:( UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
{
   [[Appoxee shared] receivedRemoteNotification:userInfo];, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]) {
    
    Appoxee.shared()?.receivedRemoteNotification(userInfo)
}

 

8. Add the following implementation to the method named: application:didRegisterUserNotificationSettings:

Code Block
 -func application(void)application:( UIApplication, *)applicationdidRegisterUserNotificationSettings didRegisterUserNotificationSettingsnotificationSettings:( UIUserNotificationSettings *)notificationSettings {
   [[Appoxee shared] didRegisterUserNotificationSettings:notificationSettings];    
    Appoxee.shared()?.didRegisterUserNotificationSettings(notificationSettings)
}

 

9. OPTIONAL STEP -  To implement iOS8 'Push Actions', add the following implementation to the method named: application:handleActionWithIdentifier:forRemoteNotification:completionHandler:

...