ANDROID

Installation

For both installations we will use the Plugman functionality, which can be obtained through the following NPM command:

$ npm install plugman -g

SDK Integration

1) Add the support for Android inside your PhoneGap project:

$ phonegap platform add android

Note: This command line will create a folder “platform” and a subfolder “android” inside your project.

2) Install the Tappx Plugin by executing the next command:

$ plugman install --platform android --project {{project_route}}/platforms/android --plugin / {{tappx_plugin_route}} 

Important:

  • {project_route} -> Replace this macro for your project’s path.
  • {tappx_plugin_route} -> Replace this macro for the path where you saved the Tappx Plugin that you have downloaded.

Android Requirements

Tappx SDK Integration


1) Open the project with AndroidStudio and add in the gradle file the next lines:

                implementation 'com.tappx.sdk.android:tappx-sdk:3.+'
                implementation 'com.tappx.sdk.android:omsdk:1.3.20'
                implementation 'com.google.android.gms:play-services-base:12.0.0'
                implementation 'com.google.android.gms:play-services-ads:12.0.0'

Installation Track

With the 2.0 SDK version you can track the installations generated from the ads shown. This is very important to improve the matchings between apps and the performance in relation to downloads, so don’t forget to add this tracking if you want to generate more downloads on your app!
In order to track installs you have to declare the BroadcastReceiver "com.tappx.sdk.android.TrackInstallReceiver" in your AndroidManifest.xml on the section application.

<receiver
        android:name="com.tappx.sdk.android.TrackInstallReceiver"
        android:exported="true">
</receiver>

Important: The declared broadcast must have the android:exported="true" property in order to work properly.


Tappx © 2020