The current JavaScript API includes:
ice.push.notify(groupName)
and the current PushContext API provides:
PushContext.push(groupName, new PushNotification(subject, detail));
ice.push.notify can be enhanced as follows:
ice.push.notify(groupName, options);
Where options is an object containing defined parameters, for example:
ice.push.notify(groupName,
{subject:'hello', detail:'how are you'}
);
Would set up a Cloud Push message with subject and detail as specified. Future use for the options object would include a pushOthers flag and additional Cloud Push parameters, such as a sound clip or badge reference.
The notifyBackURI is managed by the JavaScript client so is not a parameter to this API.
The current JavaScript API includes:
ice.push.notify(groupName)
and the current PushContext API provides:
PushContext.push(groupName, new PushNotification(subject, detail));
ice.push.notify can be enhanced as follows:
ice.push.notify(groupName, options);
Where options is an object containing defined parameters, for example:
ice.push.notify(groupName,
{subject:'hello', detail:'how are you'});
Would set up a Cloud Push message with subject and detail as specified. Future use for the options object would include a pushOthers flag and additional Cloud Push parameters, such as a sound clip or badge reference.
The notifyBackURI is managed by the JavaScript client so is not a parameter to this API.