ICEmobile
  1. ICEmobile
  2. MOBI-669

Cloud Push not working on Android SX

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2 Final
    • Fix Version/s: 1.3 Beta
    • Component/s: Containers
    • Labels:
      None
    • Environment:
      Android Chrome and Stock Browser with SX

      Description

      Neither Chrome nor the stock browser on Android fire the pagehide and pageshow when the page goes idle. This means the blocking connection continues to run, therefore cloud push. This is also a power consumption issue, as heartbeating continues to run.

        Activity

        Hide
        Steve Maryka added a comment -

        This link suggests that other JS events might be usable to pause and resume blocking connection.

        http://stackoverflow.com/questions/8235139/how-can-it-be-detected-if-a-page-is-on-background-or-foreground-with-jquery-java

        Show
        Steve Maryka added a comment - This link suggests that other JS events might be usable to pause and resume blocking connection. http://stackoverflow.com/questions/8235139/how-can-it-be-detected-if-a-page-is-on-background-or-foreground-with-jquery-java
        Hide
        Steve Maryka added a comment -

        svn 33726: Added event detection for blur/focus and webkitvisibilitychange, so that pausing and resuming blocking connection occurs when browser goes idle. Stock android browser uses blur/focus, chrome uses webkitvisibilitychange. Neither of these added events work for Firefox on android.

        Even though the blocking connection is now pausing correctly, there is still no cloud notification occurring.

        Show
        Steve Maryka added a comment - svn 33726: Added event detection for blur/focus and webkitvisibilitychange, so that pausing and resuming blocking connection occurs when browser goes idle. Stock android browser uses blur/focus, chrome uses webkitvisibilitychange. Neither of these added events work for Firefox on android. Even though the blocking connection is now pausing correctly, there is still no cloud notification occurring.
        Hide
        Ted Goddard added a comment -

        Pausing the push connection on blur appears to break ajax push for multiple desktop windows.

        Show
        Ted Goddard added a comment - Pausing the push connection on blur appears to break ajax push for multiple desktop windows.
        Hide
        Ted Goddard added a comment -

        This fix was not previously propagated to the icemobile-ee trunk:

        r33251 | ted.goddard | 2013-01-28 14:05:42 -0700 (Mon, 28 Jan 2013) | 1 line

        decode part parameters uploaded from android icemobile-sx (MOBI-632)

        icefaces.jar has been updated in icemobile-ee trunk.

        Show
        Ted Goddard added a comment - This fix was not previously propagated to the icemobile-ee trunk: r33251 | ted.goddard | 2013-01-28 14:05:42 -0700 (Mon, 28 Jan 2013) | 1 line decode part parameters uploaded from android icemobile-sx ( MOBI-632 ) icefaces.jar has been updated in icemobile-ee trunk.
        Hide
        Ted Goddard added a comment -

        This appears to be working now, please verify.

        Show
        Ted Goddard added a comment - This appears to be working now, please verify.
        Hide
        Steve Maryka added a comment -

        Now working.

        Show
        Steve Maryka added a comment - Now working.

          People

          • Assignee:
            Steve Maryka
            Reporter:
            Steve Maryka
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: