Android - In App

Use the following method to initialise the RMC object in order to show in-app messages:
Visilabs.CreateAPI("OrganizasyonID", "SiteID", "http://lgr.visilabs.net", "DataSource", "http://rt.visilabs.net" , "Android" , getApplicationContext(), "http://s.visilabs.net/json", "http://s.visilabs.net/actjson", requestTimeout);
Add the required getActivity() parameter to all customEvent() calls:
 Example:
HashMap<String,String> map = new HashMap<String, String>();
map.put("CustomParamKey", "CustomParamValue");
Visilabs.CallAPI().customEvent("pageName", map, getActivity());
To display full screen messages you need to add the following lines to your application’s AndroidManifest.xml file:
<activity android:name= "com.visilabs.android.notifications.VisilabsNotificationActivity" android:theme="@style/com_visilabs_android_VisilabsNotificationActivityTheme"/>



Parent Topic: Getting Data


Copyright 2020 Related Digital