/visilabs-android

Visilabs Android SDK http://visilabs.com/

Primary LanguageJava

Visilabs Android Library

Latest Version

September 9, 2024 - Visilabs v6.3.4

Latest Version Build Status

Table of Contents

Visilabs Android

The Visilabs Android Sdk is a java implementation of an Android client for Visilabs.

Installation

Visilabs Android SDK requires minimum API level 21.

Add maven jitpack repository to your project/build.gradle file

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

Add Visilabs to the dependencies in app/build.gradle.

implementation 'com.github.relateddigital:visilabs-android:6.3.4'

This version uses AndroidX

Visilabs SDK Set Up

Mobile Tagging for Visilab and more information : Please check docs

Sample Applications

Note :

You may use the support library module in sample application but we will not contribute support library in the future. This is our last support.

In App Notification Story
Image of InAppNew Image of Story

Mail Subscription Form

After form is created at RMC panel, likewise in-app message, existence of mail subscription form is controlled by after each customEvent call. You need to call overload of customEvent which takes Activity as third parameter in order to show mail subscription forms.

customEvent(String pageName, HashMap<String, String> properties, Activity parent)

It is shown as follows;

mail-subscription-form

Spin To Win

After form is created at RMC panel, likewise in-app message, existence of spin to win is controlled by after each customEvent call. You need to call overload of customEvent which takes Activity as third parameter in order to show spin to win.

customEvent(String pageName, HashMap<String, String> properties, Activity parent)

It is shown as follows;

Spin to Win Full Spin to Win Half
spin-to-win-full spin-to-win-half

Sending Campaign Parameters

You can send campaign parameters using sendCampaignParameters :

HashMap<String, String> properties = new HashMap<>();
properties.put("utm_campaign","euromsg campaign");
properties.put("utm_source","euromsg");
properties.put("utm_medium","push");
Visilabs.CallAPI().sendCampaignParameters(properties);

Licences