MoEngage Docs

Search results for "{{ search.query }}"

No results found for "{{search.query}}". 
View All Results

SDK Installation

STEP 1 - Download

Download MoEngage Unity Package

STEP 2 - Import Assets


Click on unity package downloaded above to import it to assets folder under plugins.

The SDK needs a Unity version higher than 5.0.0 to be able to compile as we it requires native plugins for mobile platforms.

STEP 3 - Platform build settings

Switch Platform

Go to build settings under file menu and switch to platform as Android or iOS.

STEP 4 - Platform Specific Settings

Platform Specific Settings

Follow below guidelines for platform specific settings which are mandatory for successfull implementation of MoEngage SDK for Unity Android or Unity iOS.

Android Specific Settings

Configure Manifest File

  1. Configure Meta tags :

APP_ID = App id found under the settings page on the MoEngage dashboard.


SENDER_ID = The project number as mentioned on GOOGLE CLOUD CONSOLE PROJECTS PAGE


NOTIFICATION_ICON = The notification small icon which will be used to set to notifications posted


NOTIFICATION_TYPE = The notification type which will be used, SINGLE OR MULTIPLE. Default behaviour is single, use 2


NOTIFICATION_LARGE_ICON = The notification large icon which will be used to set to notifications posted.


SKIP_GCM_REGISTRATION = false, If you want MoEngage to register for Push Notification, else true.

    android:value="false" />
  1. Replace Package names : Replace [YOUR_ APPLICATION_ID] with you application id
<permission android:name="[YOUR_ APPLICATION_ID].permission.C2D_MESSAGE"

    <receiver android:name="">
        <action android:name="android.intent.action.PACKAGE_REPLACED"/>

            android:path="[YOUR_ APPLICATION_ID]"

    <!-- The underlying content provider -->
        android:authorities="[YOUR_ APPLICATION_ID].moengage.provider"
    android:permission="" >
      <action android:name=""/>
      <category android:name="[YOUR_ APPLICATION_ID]"/>
  1. Add label and parent activity to MoEActivity
      <!-- Parent activity meta-data to support 4.0 and lower -->

Replace [ADD_NAME] with label and [ADD_PARENT_ACTIVITY] with the parent activity(if any).

iOS specific settings

  1. First, create a XCode project by building your Unity project in iOS platform under build settings.

  2. Open your XCode project, go to Info.plist of your project and add MoEngage_APP_ID key and assign your APP ID as shown below :

Find your APP ID

To know App ID to be used, login to your MoEngage account, Go to Settings in the left panel. Under App Settings, you will find your APP ID.

  1. Go to Build Settings of the App Target and add -ObjC flag to Other Linker Flags as shown in image below :
  1. After this Enable Objective-C Exceptions in the Build Settings of your App Target as shown below :
  1. We provide Test/ Live environment feature so that you can test all our features in Test environment before going live with your app. To enable test environment you will have to add a preprocessor macro i.e DEBUG. And do the following to achieve it :
    • Select your App target
    • Go to Build Settings
    • Go to Preprocessing Section
    • Add "DEBUG=1" Preprocessor Macro for Debug as shown below :

Use Test Environment

To use Test environment of MoEngage, Build your iOS build by selecting Debug for Run in XCode in Unity Build Settings.

SDK Installation