Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: 4.0.BETA, 4.0
    • 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.

        Activity

        Hide
        Ted Goddard added a comment -

        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.

        Show
        Ted Goddard added a comment - 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.
        Hide
        Mircea Toma added a comment -

        Added ability to send parameters along with the push notification.

        Show
        Mircea Toma added a comment - Added ability to send parameters along with the push notification.
        Hide
        Deryk Sinotte added a comment -

        Please document API changes.

        Show
        Deryk Sinotte added a comment - Please document API changes.
        Hide
        Mircea Toma added a comment -

        Added documentation for the optional parameter in http://www.icesoft.org/wiki/display/PUSH/JavaScript+Integration page.

        Show
        Mircea Toma added a comment - Added documentation for the optional parameter in http://www.icesoft.org/wiki/display/PUSH/JavaScript+Integration page.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: