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

        Ted Goddard created issue -
        Hide
        Steve Maryka added a comment -

        High Priority

        Show
        Steve Maryka added a comment - High Priority
        Steve Maryka made changes -
        Field Original Value New Value
        Assignee Steve Maryka [ steve.maryka ] Ted Goddard [ ted.goddard ]
        Steve Maryka made changes -
        Fix Version/s Bridge-it 1.0 [ 11172 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #37487 Wed Aug 21 17:27:17 MDT 2013 ted.goddard launchFailed callback for the case where BridgeIt is not installed (MOBI-800)
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/bridgeit/src/main/javascript/bridgeit.js
        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.
        Ted Goddard made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: