Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you would like to To show In-App messages in your mobile application use the following method to initialize the Visilabs RMC object as stated in Initialization section of Sending Data/Event Data.

Code Block
languagejava
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:

Code Block
languagejava
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:

 

Code Block
languagexml
<activity android:name= "com.visilabs.android.notifications.VisilabsNotificationActivity" android:theme="@style/com_visilabs_android_VisilabsNotificationActivityTheme"/>