ICEmobile
  1. ICEmobile
  2. MOBI-916

Support ICEpush within BridgeIt JavaScript API

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE 1.3
    • Fix Version/s: BridgeIt 1.0
    • Component/s: Core
    • Labels:
      None
    • Environment:
      ICEpush, BridgeIt

      Description

      A simplified BridgeIt API should allow JavaScript developers to use ICEpush as a service.

        Activity

        Hide
        Ted Goddard added a comment -

        Reopened to consider merged options parameter.

        Show
        Ted Goddard added a comment - Reopened to consider merged options parameter.
        Hide
        Ted Goddard added a comment -

        Comment from Deryk: If BridgeIt provides a general services platform, all services should be accessible in a uniform way. For instance, a single API key should be provided only once for both the push service, location service, and echo service.

        Instead of usePushService(), an extension would be useService("http://bridgeit.mobi","push","echo") which would dynamically download the required APIs and inject them under the bridgeit.* namespace using the first argument as the base service URL. The API key could be set in a separate call bridgeit.authorize(apikey).
        Note that this requires the dependent services to be BridgeIt-aware to add their APIs under bridgeit. (icepush.js could detect window.bridgeit and add the required functions.)

        Show
        Ted Goddard added a comment - Comment from Deryk: If BridgeIt provides a general services platform, all services should be accessible in a uniform way. For instance, a single API key should be provided only once for both the push service, location service, and echo service. Instead of usePushService(), an extension would be useService("http://bridgeit.mobi","push","echo") which would dynamically download the required APIs and inject them under the bridgeit.* namespace using the first argument as the base service URL. The API key could be set in a separate call bridgeit.authorize(apikey). Note that this requires the dependent services to be BridgeIt-aware to add their APIs under bridgeit. (icepush.js could detect window.bridgeit and add the required functions.)
        Hide
        Mircea Toma added a comment -

        Created issue PUSH-285 to define the merging of the 'options' parameter task.

        Show
        Mircea Toma added a comment - Created issue PUSH-285 to define the merging of the 'options' parameter task.
        Hide
        Ted Goddard added a comment -

        There are two forms of the API to load services:

        bridgeit.useService("http://api.bridgeit.mobi/","push","echo")

        Services at different base URLs can be specified with multiple invocations of useService().

        If the version of the service needs to be specified, the service can be registered in detail:

        bridgeit.useService("http://api.bridgeit.mobi/","push",

        {name: "echo", version: "2"}

        )

        Each service must have a script file stored at a well-known location, for instance:

        http://api.bridgeit.mobi/echo/echo.js

        The script echo.js will then add its API to the bridgeit object.

        Show
        Ted Goddard added a comment - There are two forms of the API to load services: bridgeit.useService("http://api.bridgeit.mobi/","push","echo") Services at different base URLs can be specified with multiple invocations of useService(). If the version of the service needs to be specified, the service can be registered in detail: bridgeit.useService("http://api.bridgeit.mobi/","push", {name: "echo", version: "2"} ) Each service must have a script file stored at a well-known location, for instance: http://api.bridgeit.mobi/echo/echo.js The script echo.js will then add its API to the bridgeit object.
        Hide
        Ted Goddard added a comment -

        Initial integration is implemented.

        Show
        Ted Goddard added a comment - Initial integration is implemented.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: