Mapp Intelligence Android SDK is used to integrate Mapp tracking systems with your Android apps. Collect meaningful data about how your apps are used, track how your users interact with your app, how they view specific pages, and custom events. Based on the tracking data from apps different indicators can be measured, which are already known from the web analytics, such as page impressions, events, screen size, operating system, e-commerce tracking, etc.
Mapp Intelligence Android SDK v5 is written entirely in Kotlin and uses Coroutines for non-blocking executions, WorkManager for enqueuing and sending the track requests to optimize the device battery and app performance. Mapp Intelligence internally, collects and caches the data that you specify for tracking, and later, it sends those data to Webtrekk analytic servers in periodic times.
For versions of 5.0.8+ we are use mavenCentral() because Jcenter is shutting down
From version 5.1.3. and higher, Java 11 is required.
To set Java 11, go to Android Studio, Preferences->Build, Execution, Deployment->Gradle->Gradle JDK and select JAVA 11.
Also, add following into application build.gradle file:
compileOptions {
targetCompatibility JavaVersion.VERSION_11
}
If using kotlin add this also:
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
Gradle
implementation 'com.mapp.sdk:intelligence-android:5.1.3'
Maven
<dependency>
<groupId>com.mapp.sdk</groupId>
<artifactId>intelligence-android</artifactId>
<version>5.1.3</version>
<type>pom</type>
</dependency>
Maven
<dependency>
<groupId>com.webtrekk.webtrekksdk</groupId>
<artifactId>webtrekksdk-android</artifactId>
<version>5.1.3</version>
<type>pom</type>
</dependency>
implementation 'com.mapp.sdk:intelligence-android:5.1.2'
Last SDK version that supports JAVA 8
The SDK requires that you enable Java 8 in your builds.
compileOptions {
targetCompatibility 1.8
sourceCompatibility 1.8
}
Versions less then 5.0.4 are on Jcenter(), Access will be blocked on February 1, 2022. Warning: Please don't use versions 5.0.5, 5.0.6 and 5.0.7
Allow the network permission in your app manifest.
<uses-permission android:name="android.permission.INTERNET" />
The SDK supports min Android SDK (21).
Note that the SDK uses AndroidX, make sure to migrate your app to AndroidX Migration to avoid Manifest merger failure.
Check out the docs on the site to learn more about tracking server and custom params. We have implemented camera, push and form tracking in our Test Application
Please check out our contributing guide before you start here.
MIT License
Copyright (c) 2019 Webtrekk GmbH
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.