For initializing the project, you'll need to provide the WorkspaceID of your MoEngage Workspace.
info |
Getting Workspace ID : Login to your MoEngage account, go to Settings in the left panel of the dashboard. Under App Settings, you will find your Workspace ID. |
- Go to info.plist of your project.
- Create MoEngage dictionary
- Inside MoEngage dictionary, Add MoEngage_APP_ID key and provide WorkspaceID.
warning |
Important [Introduced in plugin version 6.0.0] Make sure to call the below |
Once the changes are done, go to your AppDelegate
file and call the below initialization method in application:didFinishLaunchingWithOptions:
method:
info |
Data Redirection: Make sure to call |
#import <ReactNativeMoEngage/MOReactInitializer.h>
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Set Data Center
[MoEngage setDataCenter:DATA_CENTER_01]; //DATA_CENTER_01, DATA_CENTER_02, DATA_CENTER_03, OR DATA_CENTER_04
[[MOReactInitializer sharedInstance] intializeSDKWithLaunchOptions:launchOptions];
// Rest of the implementation
return YES;
}