Skip to content

Sending a Push notification (bizzStream.sendPushNotification)

You can use bizzStream.sendPushNotification to send push notifications to users with the BizzStream application installed on their mobile device.

bizzStream.sendPushNotification(userIds, content)
Parameter Type Required Description
userIds Array Yes A list of user id's
content String Yes The content of the push notification consisting out of maximal 256 characters where placeholders may be used.

Example

The following example shows how to send a push notification in a script:

bizzStream.sendPushNotification(
    ['a6gA9rYaGTFKPrT5P', '9AGoJxZwyfeRHShXq'],
    "Hi " + serverDocument.name + ", please register your timesheets."
);

This script will send a push notification with the text "Hi Peter, please register your timesheets" if the name field of the server document has the value "Peter". The push notification will be sent to the users with IDs a6gA9rYaGTFKPrT5P and 9AGoJxZwyfeRHShXq.