Javascript API
New Widget
$zopim.livechat.mobileNotifications
Control mobile notifications
Summary
$zopim. | Control mobile notifications |
Functions | |
setDisabled | Disable/re-enable the showing of mobile notifications. |
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
bool | Disable 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>
Disable/re-enable the showing of mobile notifications.
function setDisabled( bool )