Android Visilabs SDK Installation
Â
Import com.visilabs.android.* package to all files for which you will be using the SDK.
There are 4 different usages of the SDK:
1- Sending data to RMC
2-Â Sending data to RMC and Receiving Recommendations
3-Â Sending data to RMC, Receiving Recommendations and In-app messages
4-Â Sending data to RMC, Receiving Recommendations, In-app messages and Running Geofence Module
Please use only one of the methods based on your needs and requirements.
Sending data to RMC
Use the following method to only send data to RMC:Â
Visilabs.CreateAPI("OrganizationID","SiteID", "http://lgr.visilabs.net", "DataSource", "http://rt.visilabs.net" , "Android" , getApplicationContext());
Sending Data to RMC and Receiving Recommendations
Use the following method to send data to RMC and to receive Recommendations:
Visilabs.CreateAPI("OrganizationID", "SiteID", "http://lgr.visilabs.net", "DataSource", "http://rt.visilabs.net" , "Android" , getApplicationContext(), requestTimeout, "http://s.visilabs.net/json");
Sending Data to RMC, Receiving Recommendations and In-App MessagesÂ
Use the following method to send data to RMC, to receive Recommendations and In-App messages:
Visilabs.CreateAPI("OrganizationID", "SiteID", "http://lgr.visilabs.net", "DataSource", "http://rt.visilabs.net" , "Android" , getApplicationContext(), "http://s.visilabs.net/json", "http://s.visilabs.net/actjson", requestTimeout);
Sending Data to RMC, Receiving Recommendations and In-App Messages and Running Geofence Module
Use the following method to send data to RMC, to receive Recommendations and In-App messages and to run Geofence Module. If you are using this overload of CreateAPI method, define parameters in AndroidManifest.xml file.
In order to run Geofence module define the following permissions, service and receiver in AndroidManifest.xml file:Â
To learn the OrganizationID, SiteID and Datasource Parameters, login to RMC GUI and view your profile details or send a request to RMC support.
Copyright 2020 Related Digital