In-App Chat

This page covers the APIs specific to in-app chats for Cordova apps.

Push Notifications

Disabling Push Notifications

You can disable the push notifications as shown the following example.

//iOS
cordova.plugins.instabug.activate(
    {
        ios: 'MY_IOS_TOKEN'
    },
    cordova.plugins.bugReporting.invocationEvents.shake,
    {
       enablePushNotifications:false 
    },
    function () {
        console.log('Instabug initialized.');
    },
    function (error) {
        console.log('Instabug could not be initialized - ' + error);
    }
);
//Android 
//Builder method generated in MyApplication class
new Instabug.Builder(this, "APP_TOKEN")
	.setInvocationEvent(InstabugInvocationEvent.SHAKE)
  .setPushNotificationState(Feature.State.DISABLED)
	.build();

In-app Notifications

New Message Notifications

By default, a notification will be shown on top of your app's UI when a new message is received.