If you would like to show In-App messages in your application use the following method to initialize the Visilabs object as stated in Initialization section of Sending Data/Event Data.
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);
And add the required getActivity() parameter to the all customEvent() calls.
Example:
HashMap<String,String> map = new HashMap<String, String>(); map.put("CustomParamKey", "CustomParamValue"); Visilabs.CallAPI().customEvent("pageName", map, getActivity());
Â
If you would like 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"/>