ICEpush
  1. ICEpush
  2. PUSH-377

The create-push-id.icepush request should be sent asynchronously

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0, EE-4.0.0.GA
    • Fix Version/s: 4.1
    • Component/s: JavaScript Client
    • Labels:
      None
    • Environment:
      Mobile Device
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)

      Description

      The create-push-id.icepush request is currently being send synchronously using an XHR. This blocks the connection to the server which can lead to a complete block when using a mobile device. Instead is should be send asynchronously.

        Activity

        Hide
        Jack Van Ooststroom added a comment -

        Sending application.js
        Transmitting file data .
        Committed revision 46501.

        Show
        Jack Van Ooststroom added a comment - Sending application.js Transmitting file data . Committed revision 46501.
        Hide
        Jack Van Ooststroom added a comment -

        Sending application.js
        Transmitting file data .
        Committed revision 46502.

        Show
        Jack Van Ooststroom added a comment - Sending application.js Transmitting file data . Committed revision 46502.
        Hide
        Jack Van Ooststroom added a comment -

        I updated the JavaScript API documentation at http://www.icesoft.org/wiki/display/PUSH/JavaScript+Integration.

        Show
        Jack Van Ooststroom added a comment - I updated the JavaScript API documentation at http://www.icesoft.org/wiki/display/PUSH/JavaScript+Integration .
        Hide
        Jack Van Ooststroom added a comment -

        The ice.push.createPushId(retries) function has been refactored to the ice.push.createPushId(retries, callback) function. Thus the former no longer exists as a synchronous mode for this function can no longer be supported. Now a callback function is to be passed into this function invocation. Once the JavaScript Bridge receives the newly created unique Push-ID from the server, it invokes the callback function in order to pass the Push-ID to the caller.

        Marking this one as FIXED.

        Show
        Jack Van Ooststroom added a comment - The ice.push.createPushId(retries) function has been refactored to the ice.push.createPushId(retries, callback) function. Thus the former no longer exists as a synchronous mode for this function can no longer be supported. Now a callback function is to be passed into this function invocation. Once the JavaScript Bridge receives the newly created unique Push-ID from the server, it invokes the callback function in order to pass the Push-ID to the caller. Marking this one as FIXED.

          People

          • Assignee:
            Jack Van Ooststroom
            Reporter:
            Jack Van Ooststroom
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: