Zopim is now called Zendesk Chat. All API functionality will continue to work as normal and the namespace will not change in the immediate future.

Javascript API

$zopim.livechat.mobileNotifications

Control mobile notifications

Summary
$zopim.livechat.mobileNotificationsControl mobile notifications
Functions
setDisabledDisable/re-enable the showing of mobile notifications.

Functions

setDisabled

function setDisabled(bool)

Disable/re-enable the showing of mobile notifications.  This should be called on every page that notifications should be disabled, as they are enabled by default.

Note: the mobile notifications feature is mobile overlay mode only.

Parameters

boolDisable or re-enable notifications (boolean, required).

Example

<script>

  $zopim(function() {
    // this would disable the mobile notifications for the current page
    $zopim.livechat.mobileNotifications.setDisabled(true);
  });

</script>
function setDisabled(bool)
Disable/re-enable the showing of mobile notifications.