로딩중입니다
[Target Push] Multi Push Integration
6/26/2016 4:14:56 PM

Multi Push Integration Guide

Live Operation Target Push Service offers multi push function which makes it possible to use various push services together.

Follow the following guide to implement the multi push function.


Note that Target Push Integration must be done before proceeding the multi push.



AndroidManifest.xml Setting


Change the Push Receiver Registration Order

When implementing the multi push function using the target push service, the Target Push Receiver must be registered before any other receivers of any other companies.

Refer to the sample below, add and edit the push receiver.

<!-- Igaworks -->
<receiver android:name="com.igaworks.liveops.pushservice.LiveOpsGCMBroadcastReceiver"
    android:permission="com.google.android.c2dm.permission.SEND">
    <intent-filter>
        <action android:name="com.google.android.c2dm.intent.RECEIVE"/>
        <action android:name="com.google.android.c2dm.intent.REGISTRATION"/>
        <category android:name="com.YOUR_PACKAGE_NAME.HERE"/>
    </intent-filter>
</receiver>
<service android:enabled="true"
android:name="com.igaworks.liveops.pushservice.GCMIntentService"/>

<!-- your IGAWORKS KEYS here -->
<meta-data android:name="igaworks_app_key" android:value="igaworks_app_key"/>
<meta-data android:name="igaworks_hash_key" android:value="igaworks_hash_key"/>

<!-- Push Company 1 -->
<receiver android:name="push.company1.android.sample.Test1_GCMBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
    <action android:name="com.google.android.c2dm.intent.RECEIVE"/>
    <action android:name="com.google.android.c2dm.intent.REGISTRATION"/>
    <category android:name=" com.YOUR_PACKAGE_NAME.HERE "/>
</intent-filter>
</receiver>

<!-- Push Company 2 -->
<receiver android:name="push.company2.android.sample.Test2_GCMBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
    <action android:name="com.google.android.c2dm.intent.RECEIVE"/>
    <action android:name="com.google.android.c2dm.intent.REGISTRATION"/>
    <category android:name=" com.YOUR_PACKAGE_NAME.HERE "/>
</intent-filter>
</receiver>



Sender ID Registration

Sender ID must be registered in order to receive push. There are two ways : Registering the Sender ID of other companies to the target push, or registering the target push Sender ID to other companies.


Registering the Sender ID of other companies to the target push

When initializing the Live Operation library, register the sender ID of other push services together.

To register more than one Sender IDs, input each IDs separately with a comma(,), as the sample below.

  • Android 

IgawLiveOps.initialize(MainActivity.this, "000000000,111111111");

  • Unity

IgaworksUnityPluginAOS.LiveOps.initialize("000000000,111111111");


Receiving the Registration ID

We offer receiving the Registration ID function when registering the Sender ID of other companies to the target push.

  • Android
IgawLiveOps.setRegistrationIdEventListener(new RegistrationIdEventListener() {
            @Override
            public void onReceiveRegistrationId(String regId) {
                Log.d("DEBUG", "onReceiveRegistrationId :: " + regId);
            }
});
  • Unity
void Start(){
	IgaworksUnityPluginAOS.LiveOps.setRegistrationIdEventListener();
	IgaworksUnityPluginAOS.OnReceiveRegistrationId = mOnReceiveRegistrationId;
}

void mOnReceiveRegistrationId(string regId){
	Debug.Log("ReceiveRegistrationId :::: Registration ID" + regId);
}



Registering the target push Sender ID to other companies' system

Register the target push Sender ID below to other companies' system.

910677924034



Working Process

Live Operation multi push works as follows.

  1. When receiving IGAWorks multi push :
    Live Operation SDK receives the push, processes, but does not transfer it to the other companies' receivers.

  2. When receiving other companies' push :
    Live Operation SDK receives the push and transfers it to the push receiver next in line in AndroidManifest.xml with the other companies' Sender ID which was set previously.


Notice

  1. Multi Push function is supported in Android only.
  2. Multi Push function is supported in IgawLiveOps_v1.1.4 or above.
  3. Multi Push function might not work if the other companies' receivers were registered before the target push receiver.
  4. Multi Push function does not intervene in the other companies' processes with the push transferred by this function.