iOS 7.x.x

For initializing the project, you'll need to provide the AppID of your MoEngage App.


Getting App ID :

Login to your MoEngage account, go to Settings in the left panel of the dashboard. Under App Settings, you will find your APP ID.

  • Go to info.plist of your project.
  • Create MoEngage dictionary
  • Inside MoEngage dictionary, Add MoEngage_APP_ID key and provide AppID.



IMPORTANT [Introduced in plugin version 6.0.0]

Make sure to call the below initializeSDKWithLaunchOptions: method which has been introduced from plugin version 6.0.0.

Once the AppID changes are done, go to your AppDelegate file and call the below initialization method in application:didFinishLaunchingWithOptions: method:


Data Redirection:

Make sure to call redirectDataToRegion: method with relevant MOE_REGION as an argument as shown below, eg: if your account is present in the EU Data Center, use MOE_REGION_EU. For more information refer to the following link.

#import <ReactNativeMoEngage/MOReactInitializer.h>
@implementation AppDelegate
 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  // Set Data Center
  [[MOReactInitializer sharedInstance] intializeSDKWithLaunchOptions:launchOptions];
  // Rest of the implementation
  return YES;
Was this article helpful?
0 out of 0 found this helpful