Skip to content

rudderlabs/rudder-integration-moengage-ios

Repository files navigation

What is RudderStack?

RudderStack is a customer data pipeline tool for collecting, routing and processing data from your websites, apps, cloud tools, and data warehouse.

More information on RudderStack can be found here.

Integrating MoEngage with RudderStack's iOS SDK

  1. Add Moengage as a destination in the Dashboard and define all the fields.

  2. Rudder-Moenagage is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Rudder-Moengage', '~> 2.3.0'
  1. After adding the dependency followed by pod install, you can add the imports to your AppDelegate.m file, as shown:
#import "RudderMoengageFactory.h"

Initialize RudderClient

Put this code in your AppDelegate.m file under the method didFinishLaunchingWithOptions

RSConfigBuilder *builder = [[RSConfigBuilder alloc] init];
[builder withDataPlaneUrl:<YOUR_DATA_PLANE_URL>];
[builder withFactory:[RudderMoengageFactory instance]];
[RSClient getInstance:<YOUR_WRITE_KEY> config:[builder build]];

Send Events

Follow the steps from the RudderStack iOS SDK.

Contact Us

If you come across any issues while configuring or using this integration, feel free to start a conversation on our Slack channel. We will be happy to help you.