Integrate NotifyVisitors SDK to your android app.

1) Installation

Import the NotifyVisitors SDK in your project.

Add the following repository to your project-level ' build.gradle file,

repositories {

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

dependencies {
        implementation 'com.notifyvisitors.notifyvisitors:notifyvisitors:5.3.7'
        implementation ''

 //Add the following required libraries if not using currently (skip those which are already added)

        implementation ''
        implementation 'androidx.appcompat:appcompat:1.1.0'
        implementation 'androidx.legacy:legacy-support-v4:1.0.0'
        implementation ''
        implementation 'androidx.recyclerview:recyclerview:1.0.0'
        implementation 'androidx.cardview:cardview:1.0.0'     
        implementation platform('')
        implementation ('')   
        implementation ('')

Configure AndroidManifest.xml

Insert the below XML snippet inside application tag of your AndroidManifest.xml file :

     <meta-data android:name="notifyvisitors_bid" 
                android:value="11xx" />
     <meta-data android:name="notifyvisitors_bid_e" 
                android:value="F8665C849AB6xxxxxxxxxxxxxxxxxx" />




In above example Dummy Brand ID and Secret keys are shown. Kindly login your NV_account to see your credentials.

Insert the below XML snippet inside manifest tag of your AndroidManifest.xml file:

       <uses-permission android:name="android.permission.INTERNET" />
       <uses-permission android:name="android.permission.WAKE_LOCK" />
       <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
       <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
       <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
       <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
       <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />

2) Initialization

In case, you don’t have your own application class, then you can register our application class in your apps' manifest file.

<application android:name="com.notifyvisitors.notifyvisitors.NotifyVisitorsApplication">


In case you have your own class application, then you can initialize the SDK in onCreate method of your Application class.


What’s Next