mFilterIt Uninstall Tracking
This guide details the steps to integrate the MFilterIt Uninstall tracking into an Android App.
Getting Started
Integrating the mFilterIt Uninstall Tracking solution into an app includes SDK integration and sharing FCM details with the SDK, and mFilterIt backend.
Uninstall Tracking Integration
The integration of this feature can be done by following below steps:
Step 1 : Integrate the mFilterIt Android SDK and share the FCM token to the SDK.
Step 2 : In order integrate FCM into a project the below steps have to be taken.
Modify the AndroidManifest.xml and integrate firebase cloud massaging service. FCM setup guidelines are here. Below is a code snippet:
2. Add following dependencies in build.gradle for app module:
3. Add plugin for google-services in build.gradle for app module:
4. Add google services dependencies in project build.gradle file:
Step 3 : Pass FCM token using this method:
Parameter
Description
context
Context object returned by getApplicationContext
vendorId
This is a unique Vendor ID string allocated to the app developer.
eventArray
A JSON string that captures the array of events to be sent.
For example the below string sends two events called event1 and event2, with values value1 and value2
"{ 'event1' : 'value1' , 'event2' : 'value2'}" One of the keys in the event should be FCM_TOKEN , which contains, fcm token generated by device running application.
eventType
This should be a hardcoded value passed as "UninstallEvent", for uninstall tracking.
The below is a code snippet of how the sendEvent API is invoked:
Step 4 : The below import statement needs to be added to the corresponding files (if needed).
import com.mfilterit.MFilterIt;
Points to remember : In order for the mFilterIt System to track the uninstalls, the Server Key and Sender Id need to be configured in the mFilterIt Dashboard.
Last updated