Versions Compared

Key

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

...

Code Block
#import <AppoxeeSDK/AppoxeeSDK.h>

34. Add the following delegate notation (can also be added at AppDelegate.h):

...

Code Block
@interface AppDelegate() <AppoxeeDelegate>
@end

 

45. Add the following implementation to the method named: application:didFinishLaunchingWithOptions:, Where, xxx.xxx represents the SDK ID. These were created for you with the Appoxee Dashboard:

...

Info
titleAppoxeeConfiguration.plist

Attention! you will still need to define AppoxeeConfiguration.plist file, if you need to configure your applications environment

 

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

...

Code Block
 - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
   [[Appoxee shared] didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];
}

 

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

Code Block
 - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
{
   [[Appoxee shared] receivedRemoteNotification:userInfo];
}

 

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

Code Block
 - (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings
{
   [[Appoxee shared] didRegisterUserNotificationSettings:notificationSettings];
}

 

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

Code Block
 - (void)application:(UIApplication *)application handleActionWithIdentifier:(NSString *)identifier forRemoteNotification:(NSDictionary *)userInfo completionHandler:(void (^)())completionHandler
{
   // Must be implemented in order to enable 'Push Actions'.
   BOOL didHandle = [[Appoxee shared] handleActionWithIdentifier:identifier forRemoteNotification:userInfo completionHandler:completionHandler];
   
   if (!didHandle) { completionHandler(); } // Handle the action in case it is not handled by Appoxee. When done - completionHandler() must be called.
}

 

910. OPTIONAL STEP – Silent push

...

Code Block
- handleActionWithIdentifier:forRemoteNotification:completionHandler:
- didReceiveRemoteNotification:fetchCompletionHandler:andNotifyCompletionWithBlock:

 

1011. OPTIONAL STEP - Appoxee delegate:

...