Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

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"/>

 

 

  • No labels