Option 1 - Automated Integration In iOS App



1. Add import statement



Objective-C

Open your AppDelegate.m file, and add the following import statement:



#import <AppoxeeSDK/AppoxeeSDK.h>



Swift

Add to your Objective-C bridging header the following import statement:



#import <AppoxeeSDK/AppoxeeSDK.h>

2. Add the following implementation to the method named: application:didFinishLaunchingWithOptions:

  1. User will be automatically asked for notification permission at first open of application.

    Objective-C

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Method takes into consideration a valid AppoxeeConfig.plist file in your application. [[Appoxee shared] engageAndAutoIntegrateWithLaunchOptions:launchOptions andDelegate:nil with:L3]; return YES; }

    Swift



  2. Remote notification will not be shown on the first run of the application, a user can decide later a moment of time when he wants to ask for permission. A developer can trigger alert dialog whenever he wants for notification permission with this.


    Objective-C

    Swift





    Parameter "with" represents enum SERVER that enables you to chose one of the four options:

    L3

    EMC

    CROC

    TEST

    Account manager will provide you the info on which one you should use in your application (L3, EMC or CROC)

    Our developers use TEST for development purposes and you shouldn't use this one.

     This feature is available only for users who use SDK 6.0.0 and above.