로딩중입니다
IGAW common integration : Android
5/27/2015 1:49:20 PM

IGAW Common Modules


All IGAWorks services are available as common modules + add-ons.

In order to use services such as Adbrix, adPOPcorn (OfferWall, DA), LiveOperation, promotion, coupon, Nanoo, etc., the add-ons must be integrated after common integration is completed. 



AndroidManifest.xml setting


Set basic information (App Key, Hash Key, Permission) necessary when using the adbrix service in the AndroidManifest.xml file.


Insert the app key and hash hey in-between the <application></application> tag as follows:

<meta-data android:name="igaworks_app_key" android:value="Please enter issued app key here."/>
<meta-data android:name="igaworks_hash_key" android:value="Please enter issued app key here."/>


Add the required permission in-between the <manifest></manifest> tag. The service won't run properly unless the following permissions are added:

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<!-- Optional values. -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
* Update Notice *
Higher than Common 4.2.0 version, pop-up windows of authorization setting for Android 6.0 version might be bad game UX, READ_EXTERNAL_STORAGE,WRITE_EXTERNAL_STORAGE permission will not be required.  e
TrackingLink & adPOPcorn advertising Guide
To use TrackingLink or adPOPcorn advertising service, you should add Google Install Receiver.
If receiver is not installed properly, you cannot check New User data. Please refer below guide to set the receiver.
[IGAWorks Google Install Receiver Guide]


Auto Session Tracking (Android 4.0.4 or higher)

Common 4.4.0a and higher version Android are supported Auto Session Tracking without Android activity setting. 

App should support at least Android 4.0.4 or higher version to use Auto Session Tracking.


In case, utilize Application Class provided in SDK

Declare below Androidmanifest.xml.

<application
    android:name="com.igaworks.IgawDefaultApplication"
</application>


In case utilize Application Class manually.

If you already use Application class, please declare below Androidmanifest.xml. 

<application
    android:name="PACKAGE_NAME.YourCustomApplication"
</application>
After that, add below code in Application Class. 
public class YourCustomApplication extends Application{
    @Override
    public void onCreate(){
        super.onCreate();
        IgawCommon.autoSessionTracking(YourCustomApplication.this);
    }
}


IGAW Common Module Integration (Lower version than Android 4.0.4)


If app support lower versions than Android 4.0.4, please add API at Android Activity. 

In order to process the transmission of customer retention rate and analysis data, startSession and endSession should be integrated. These functions should always be paired together.

It should be integrated with at least one or more activities including the one that is integrated with the API for Adbrix analysis. It is called up from onResume(), onPause().

@Override
protected void onResume() {
    super.onResume();
    IgawCommon.startSession(MainActivity.this);
}

@Override
protected void onPause() {
    super.onPause();
    IgawCommon.endSession();
}


+ Close the application with Process Kill?

If the process is forced to close, the endSession won't be called up properly. Refer to the additional guide to process the endSession call.

[endSessionIntegration Guide for Process Kill]



IGAWorks Add-on Integration

If the common integration process is completed, refer to the appropriate service guide to proceed with the add-on integration.