Free forever Marketing SDK with a dashboard for in-app SplashScreen banners with built-in analytics

Overview

AdaptivePlus

AdaptivePlus Android SDK

AdaptivePlus is the control center for marketing campaigns in mobile applications

Requirements

  • minSdkVersion 16

Examples provided in Kotlin programming language

Installation

Add the following dependency to your app's build.gradle file:

dependencies {
    implementation 'plus.adaptive:android-sdk:2.1.2'
}

Maven central

Add the following to your root build.gradle file

allprojects {
    repositories {
      mavenCentral()
    }
}

Do not forget to sync project with gradle files afterwards

Initialization

Register an account in the admin panel of AdaptivePlus

Initialize AdaptivePlusSDK on app startup and pass the API key that you received upon account registration

// App StartUp
class YourApp: Application() {
    override fun onCreate() {
        super.onCreate()

        AdaptivePlusSDK
            .init(apiKey = "your api key")
    }
}

Initialization Exception

SDK throws APInitializationException on newInstance method call if adaptivePlusApiKey is not provided beforehand via init method

Splash Screen

Show AdaptivePlus Splash Screen on app startup or after user logs in (or at any suitable moment)

class MainActivity: Activity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        AdaptivePlusSDK
            .newInstance(context)
            .showSplashScreen()
    }
}

Now, you can visit the admin panel and create some content. Do not forget to change the status of the content to active. On the first showSplashScreen method call (first app launch), the SDK preloads the splash screen contents to your device, and will have a loading delay before displaying it. On the subsequent method calls, probably, the splash screen contents are already preloaded, and the splash screen will be displayed on the screen instantly

If you are not able to observe the created content - probable reasons are:

  • You forgot to activate the content in the AdaptivePlus admin panel
  • Check again the integration guide, maybe you missed something out
  • The SDK couldn't preload the contents on the previous showSplashScreen method calls due to network issues or internal sdk issues

Personalized Experience

In order to make SDK experience more personalized, you can provide following user data:

AdaptivePlusSDK
    .newInstance(context)
    .setUserId(userId)
    .setUserProperties(userProperties)
    .setLocation(userLocation)
    .showSplashScreen()

userId: String - id assigned to the user by your own system/service, useful for identifying the same user across multiple devices
userProperties: Map<String, String> - user properties, e.g. - age, gender, etc. User properties help SDK to select and show content relevant to the user. Ex:

val userProperties = mapOf("age" to "25", "gender" to "male")

userLocation: APLocation - user location (latitude & longitude). Required if you want to display geo-oriented content to the user

data class APLocation(
    val latitude: Double,
    val longitude: Double
) : Serializable

Splash Screen Draft Campaigns

To take a look at splash screen campaigns that are on moderation (not active) state pass hasDrafts parameter as true to showSplashScreen method:

AdaptivePlusSDK
    .newInstance(context)
    .showSplashScreen(hasDrafts = true)

Splash Screen Listener

interface APSplashScreenListener {
    fun onFinish() {}
    fun onRunAPCustomAction(params: HashMap<String, Any>) {}
}

For listening of the splash screen events - you should provide your implementation of APSplashScreenListener:

AdaptivePlusSDK
    .newInstance(context)
    .setSplashScreenListener(
        object: APSplashScreenListener {
            override fun onFinish() {
                // TODO: actions to do on the splash screen finish
            }

            override fun onRunAPCustomAction(params: HashMap<String, Any>) {
                // TODO: your implementation of Adaptive Plus Custom Actions
            }
        }
    )
    .showSplashScreen()

AdaptivePlus Debug Mode

To observe network logs of the SDK - pass true to setIsDebuggable method:

AdaptivePlusSDK
    .setIsDebuggable(true)

OR

AdaptivePlusSDK
    .newInstance(context)
    .setIsDebuggable(true)

Do not forget to switch Debug Mode off for the release build of your app.

Permissions

We include the INTERNET permission by default as we need it to make network requests:

<uses-permission android:name="android.permission.INTERNET" />

will be added to the manifest file during the app build process

Dependency graph

Here is our complete dependency graph:

# Transitive (shared with your app)
org.jetbrains.kotlin:kotlin-stdlib:1.4.31

androidx.core:core-ktx:1.3.2
androidx.appcompat:appcompat:1.2.0
androidx.lifecycle:lifecycle-extensions:2.2.0
androidx.recyclerview:recyclerview:1.2.0
androidx.constraintlayout:constraintlayout:2.1.0-beta01
androidx.cardview:cardview:1.0.0

com.google.android.material:material:1.3.0
com.google.code.gson:gson:2.8.6

com.squareup.okhttp3:okhttp:4.9.1
com.squareup.okhttp3:logging-interceptor:4.9.1

com.github.bumptech.glide:glide:4.12.0
com.github.bumptech.glide:okhttp3-integration:4.12.0
com.github.bumptech.glide:compiler:4.12.0

Transitive Dependencies

AdaptivePlus Android SDK transitively depends on the above libraries. If your app is using any one of these libraries, they should at least be on the same major version that AdaptivePlus SDK is using. When there are two versions of a library at build time, Gradle automatically picks the newer version. This means if you are currently using say Glide 3.x, your app would automatically get Glide 4.x after including AdaptivePlus.

You might also like...
Android SDK for eyeson video service incl. demo app

eyeson Android SDK Android SDK for eyeson video service incl. demo app Prerequisites A webservice to host and maintain eyeson meetings is required. Th

AWS SDK for Android. For more information, see our web site:

AWS SDK for Android For new projects, we recommend interacting with AWS using the Amplify Framework. The AWS SDK for Android is a collection of low-le

Android Real Time Chat & Messaging SDK
Android Real Time Chat & Messaging SDK

Android Chat SDK Overview Applozic brings real-time engagement with chat, video, and voice to your web, mobile, and conversational apps. We power emer

Evernote SDK for Android

Evernote SDK for Android version 2.0.0-RC4 Evernote API version 1.25 Overview This SDK wraps the Evernote Cloud API and provides OAuth authentication

Air Native Extension (iOS and Android) for the Facebook mobile SDK

Air Native Extension for Facebook (iOS + Android) This is an AIR Native Extension for the Facebook SDK on iOS and Android. It has been developed by Fr

Liquid SDK (Android)

Liquid Android SDK Quick Start to Liquid SDK for Android This document is just a quick start introduction to Liquid SDK for Android. We recommend you

AWS SDK for Android. For more information, see our web site:

AWS SDK for Android For new projects, we recommend interacting with AWS using the Amplify Framework. The AWS SDK for Android is a collection of low-le

新浪微博 Android SDK

ReadMe 公告: 鉴于线上服务器出现问题,推荐下载本地aar后上传到自己公司的服务器,保证后续服务稳定, 我们也将尽快重新提供一个稳定的地址供大家使用。 新包地址:https://github.com/sinaweibosdk/weibo_android_sdk/tree/master/2019

Official Appwrite Android SDK 💚  🤖
Official Appwrite Android SDK 💚 🤖

Appwrite Android SDK This SDK is compatible with Appwrite server version 0.8.x. For older versions, please check previous releases. Appwrite is an ope

Releases(2.1.2)
  • 2.1.2(Jun 9, 2021)

  • 2.1.1(Jun 4, 2021)

    • Shows SDK generated Splash Screen with countdown timer: able to display Images & GIFs & Texts, execute simplest set of actions on click
    • Action list contains:
      (1) Web URL Opening in WebView dialog window,
      (2) DeepLink call to Android Operating System,
      (3) Send SMS & Call Phone,
      (4) Custom Action (you should implement it, nothing will happen otherwise)
    Source code(tar.gz)
    Source code(zip)
Owner
Adaptive.Plus
In-App Marketing SDK. Free forever mobile SDK with a dashboard for in-app SplashScreen banners with built-in analytics
Adaptive.Plus
Sdk-android - SnapOdds Android SDK

Documentation For the full API documentation go to https://snapodds.github.io/sd

Snapodds 0 Jan 30, 2022
Segmenkt - The SegmenKT Kotlin SDK is a Kotlin-first SDK for Segment

SegmenKT Kotlin SDK The SegmenKT Kotlin SDK is a Kotlin-first SDK for Segment. I

UNiDAYS 0 Nov 25, 2022
Frogo SDK - SDK Core for Easy Development

SDK for anything your problem to make easier developing android apps

Frogobox 10 Dec 15, 2022
HubSpot Kotlin SDK 🧺 Implementation of HubSpot API for Java/Kotlin in tiny SDK

HubSpot Kotlin SDK ?? Implementation of HubSpot API for Java/Kotlin in tiny SDK

BOOM 3 Oct 27, 2022
This App is sending Face capture data over network, built around the latest Android Arcore SDK.

AndroidArcoreFacesStreaming From any Android phone ArCore compatible, using this app will send over TCP 5680 bytes messages: The first 5616 bytes is a

Maxime Dupart 30 Nov 16, 2022
Android Chat SDK built on Firebase

Chat21 is the core of the open source live chat platform Tiledesk.com. Chat21 SDK Documentation Features With Chat21 Android SDK you can: Send a direc

Chat21 235 Dec 2, 2022
Peer Support is a community-based peer to peer mental health therapy platform built using Webex Android SDK

Peer Support Peer Support is a community-based peer to peer mental health therapy platform built using Webex Android SDK. Table of Contents Video Demo

Webex Solution Developers 1 Sep 6, 2022
Its measurement app made using kotlin with sceneform sdk by google

ARCORE MEASUREMENT This app is build using sceneform sdk for android using kotlin language It helps you measure the distance between multiple points i

Kashif Mehmood 39 Dec 9, 2022
How to Integrate SAWO SDK to an Android app

How to Integrate SAWO SDK to an Android app Add following line to root build.gradle repositories block maven { url 'https://jitpack.io' } Add this to

Latiful Mousom 0 Nov 20, 2021
A sample project of implementing Liveness Detection and Identity OCR on Android app using Kredibel Vision SDK

Vision Sample (Android) A sample project of implementing Liveness Detection and Identity OCR on Android app using Kredibel Vision SDK. You can checkou

null 10 Nov 27, 2022