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

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #33726 Fri Mar 01 15:39:39 MST 2013 steve.maryka mobi-669: 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, chrom uses webkitvisibilitychange. Neither of these added events work for Firefox on android.
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.util/component.js
        Steve Maryka created issue -
        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
        Steve Maryka made changes -
        Field Original Value New Value
        Fix Version/s 1.3 Beta [ 10373 ]
        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.
        Steve Maryka made changes -
        Assignee Steve Maryka [ steve.maryka ] Ted Goddard [ ted.goddard ]
        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.
        Ted Goddard made changes -
        Assignee Ted Goddard [ ted.goddard ] Steve Maryka [ steve.maryka ]
        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.
        Steve Maryka made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #34512 Tue Apr 23 15:19:00 MDT 2013 ted.goddard removing pause push on window blur listeners due to desktop browser side effects (MOBI-669)
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.util/component.js

          People

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

            Dates

            • Created:
              Updated:
              Resolved: