Versions Compared

Key

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

...

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

Code Block
 -func application(void)application:( UIApplication, *)applicationhandleActionWithIdentifier handleActionWithIdentifieridentifier:(NSString *)identifier forRemoteNotification:(NSDictionary *)userInfo String?, forRemoteNotification userInfo: [NSObject : AnyObject], completionHandler:(void (^)())completionHandler
{
   -> Void) {
    
    // Must be implemented in order to enable 'Push Actions'.
      BOOLlet didHandlehandled = [[Appoxee shared] handleActionWithIdentifier:identifier.shared()?.handleActionWithIdentifier(identifier, forRemoteNotification: userInfo, completionHandler:completionHandler];
   completionHandler)
    
      if (!didHandle) { handled == false {
        
        completionHandler(); } // Handle the action in case it is not handled by Appoxee. When done - completionHandler() must be called.
    }
}

 

10. OPTIONAL STEP – Silent push

Please review the documentation provided with the SDK for the below methods :

Code Block
- handleActionWithIdentifierapplication:handleActionWithIdentifier:forRemoteNotification:responseInfo:completionHandler:
- didReceiveRemoteNotificationapplication:didReceiveRemoteNotification:fetchCompletionHandler:andNotifyCompletionWithBlock:

 

11. OPTIONAL STEP - Appoxee delegate:

Code Block
#pragma mark - AppoxeeDelegate
-func appoxee(void)Appoxeeappoxee:( Appoxee, *)appoxeehandledRemoteNotification handledRemoteNotificationpushNotification:( APXPushNotification, *)pushNotificationandIdentifer andIdentiferactionIdentifier:(NSString *String)actionIdentifier {
  
    
    // a push notification was recieved.
}