Versions Compared

Key

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

...

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

 

Code Block
@interfaceclass AppDelegate() <AppoxeeDelegate>
@end: UIResponder, UIApplicationDelegate, AppoxeeNotificationDelegate {

}

 

5. 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:

Code Block
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
   [[Appoxee shared] engageWithLaunchOptions:launchOptions.shared()?.engageWithLaunchOptions(launchOptions, andDelegate:self nil, andSDKID:@ "xxx123456789.xxx00"];)
   
   // Insert other initialization code or other Frameworks code below.
   
   return YES;
}

...

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

 

Code Block
 -
func application(void)application:( UIApplication, *)applicationdidRegisterForRemoteNotificationsWithDeviceToken didRegisterForRemoteNotificationsWithDeviceTokendeviceToken:( NSData *)deviceToken {    [[Appoxee shared] didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];
}
       
	Appoxee.shared()?.didRegisterForRemoteNotificationsWithDeviceToken(deviceToken)
}

 

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

...