Details
-
Type:
New Feature
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.3
-
Component/s: JavaScript Client
-
Labels:None
-
Environment:ICEpush, HTML5
-
Assignee Priority:P1
-
Affects:Documentation (User Guide, Ref. Guide, etc.)
Description
A JavaScript application should be able to invoke Cloud Push.
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.