MoEngage-iOS-SDK 6.2.5

MoEngage-iOS-SDK 6.2.5

LangLanguage Obj-CObjective C
ReleasedLast Release Nov 2020

Maintained by name=gautam, Chengappa C D.



Version License

MoEngage provides a platform which enables companies to deliver personalized interactions to their users through push notifications, in-app campaigns, email campaigns and other re-targeting channels.


Integration through CocoaPods

CocoaPods is a dependency manager for Objective C & Swift projects and makes integration easier.

  1. If you don't have CocoaPods installed, you can do it by executing the following line in your terminal.

    sudo gem install cocoapods

  2. If you don't have a Podfile, create a plain text file named Podfile in the Xcode project directory with the following content, making sure to set the platform and version that matches your app.

    pod 'MoEngage-iOS-SDK'

  3. Install MoEngage SDK by executing the following in the Xcode project directory.

    pod install

  4. Now, open your project workspace and check if MoEngage SDK is properly added.

SDK Initialization

Login to your MoEngage account, go to Settings in the left panel of the dashboard. Under App Settings, you will find your APP ID. Provide this APP ID while initializing the SDK with initializeDevWithApiKey: and initializeProdWithApiKey: methods as shown below.

In Objective-C:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    // Separate initialization methods for Dev and Prod initializations

    #ifdef DEBUG
        [[MoEngage sharedInstance] initializeDevWithAppID:@"Your APP ID" withLaunchOptions:launchOption];
        [[MoEngage sharedInstance] initializeProdWithAppID:@"Your APP ID" withLaunchOptions:launchOption];
    //Rest of the implementation of method

In Swift:

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:     [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

    // Separate initialization methods for Dev and Prod initializations

    #if DEBUG
        MoEngage.sharedInstance().initializeDev(withAppID:"Your APP ID", withLaunchOptions: launchOptions)
        MoEngage.sharedInstance().initializeProd(withAppID:"Your APP ID", withLaunchOptions: launchOptions)
    //Rest of the implementation of method

Thats it!! SDK is successfully integrated and initialized in the project, and ready to use.

Developer Docs

Please refer to our developer docs to know how to make use of our SDK to track Events and User Attributes, to implement Push Notification and InApps:

Change Log

See SDK Change Log for information on every released version.