mFilterIt Android SDK
This guide details the steps to integrate the MFilterIt SDK into an Android App
Getting Started
Integrating the mFilterIt Solution into an app includes Developer Registration and SDK integration.
Developer Registration
Developers wishing to use mFilterIt should first register themselves. Upon registration, a unique vendor ID will be allocated.
Please contact us to initiate the registration, at contact@mfilterit.com
SDK Integration
The SDK integration can be done by directly adding the SDK jar to the project.
1. Integration using jar sdk:
Step 1 : The SDK is made available as a jar archive . This archive needs to be included into App project.
Step 2 : Provide permissions to the SDK The mFilterIt SDK requires the following permissions to be granted in the Android manifest file
The mFilterIt algorithm works most efficiently when all permissions are allowed. However, the SDK is able detect some fraudulent activity with the mandatory permissions itself.
Step 3 : Initialize the SDK The SDK is initialized by invoking the sdkInit API. This should be done in the OnCreate routine of the SplashScreeen Activity. sdkInit is invoked as shown below The below is a description of the parameters taken by the sdkInit Routine.
A code snippet of a sample OnCreate is captured below
Step 4: The below import statement needs to be added to the corresponding files.
import com.mfilterit.MFilterIt;
Step 5: For Install Referrer api, please add gradle dependency in app module, as below:
Note: For gradle dependencies, please use compile/ implementation based on gradle version.
Passing custom application data to SDK
The mFilterIt SDK provides the below interface so that custom application specific data can be passed to the SDK.
MFilterIt.setApplicationData (Context context, String applicationData);
This code snippet shows how this API is invoked in the onCreate routine.
Points to remember : 1. For Android 6.0+ devices, please take the mandatory permissions from the user before the SDK is triggered. The SDK does not take any permissions on its own, and depends on the app to take the needed permissions before hand
2. For Install Referrer Broadcast receivers care needs to be taken that there is no conflict with other SDKs from attribution platforms etc.
3. For uninstall tracking, please refer to this link.
4. For event tracking, please refer to this link.
5. Please update the following in proguard rules file( in case of encrypted jar uses):
Last updated