Skip to content

viafoura/sdk-android

Repository files navigation

Viafoura

Viafoura Android SDK

This library allows you to integrate Viafoura tools into a native Android app.

Add the SDK to your project

Using Gradle

Add the following line to your app level build.gradle

implementation 'com.viafoura:android:1.1.4'

See our documentation

Please follow the official Viafoura Android SDK documentation.

How to initialize the SDK?

  1. Create an Application class for your app.
  2. Initialize the SDK in the onCreate(). Make sure to replace SITE_UUID and SITE_DOMAIN with the values corresponding to your domain.
public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();

        ViafouraSDK.initialize(getApplicationContext(), "SITE_UUID", "SITE_DOMAIN");
    }
}