ICEmobile
  1. ICEmobile
  2. MOBI-800

Automatic detection of ICEmobile-SX

    Details

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

      Description

      It should be possible to detect ICEmobile-SX by observing whether the page unload occurs when a native component is invoked.

        Activity

        Hide
        Steve Maryka added a comment -

        High Priority

        Show
        Steve Maryka added a comment - High Priority
        Hide
        Ted Goddard added a comment -

        The function ice.bridgeit.launchFailed(id) will be invoked with
        the ID of the element that attempted to launch BridgeIt (if BridgeIt
        is not installed). This has been tested on iOS, but not Android.

        Alternatives would be either a callback included with each
        invocation, or an addEventListener style error registration. The callback is likely to be overridden with something
        fairly simple (display a BridgeIt download prompt in an
        application-specific way), so it may be sufficient.

        The implementation strategy is to start a timer when BridgeIt is invoked and cancel
        the timer when the pageHide is called. A previous attempt tried maintaining
        a boolean directly, but the timer would still run with stale data after
        returning to the browser.

        Show
        Ted Goddard added a comment - The function ice.bridgeit.launchFailed(id) will be invoked with the ID of the element that attempted to launch BridgeIt (if BridgeIt is not installed). This has been tested on iOS, but not Android. Alternatives would be either a callback included with each invocation, or an addEventListener style error registration. The callback is likely to be overridden with something fairly simple (display a BridgeIt download prompt in an application-specific way), so it may be sufficient. The implementation strategy is to start a timer when BridgeIt is invoked and cancel the timer when the pageHide is called. A previous attempt tried maintaining a boolean directly, but the timer would still run with stale data after returning to the browser.
        Show
        Ted Goddard added a comment - Technique borrowed from http://stackoverflow.com/questions/627916/check-if-url-scheme-is-supported-in-javascript
        Hide
        Ted Goddard added a comment -

        ICEmobile-SX/BridgeIt detection is implemented.

        Show
        Ted Goddard added a comment - ICEmobile-SX/BridgeIt detection is implemented.

          People

          • Assignee:
            Ted Goddard
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: