Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Feb 2010
    Posts
    8
    Vote Rating
    0
    tnt85 is on a distinguished road

      0  

    Default HTC One X - false offline event

    HTC One X - false offline event


    REQUIRED INFORMATION

    Ext version tested:
    • Sencha Touch 2.1.
    Browser versions tested against:
    • Packed with PhoneGap 2.2
    Description:
    • Offline event is fired on page containing map, even when wi-fi or 3G is strong/active.
    Steps to reproduce the problem:
    • Create panel with map
    • Create online/offline listeners
    • Go to map and offline event is fired
    The result that was expected:
    • Network state is correctly recognized.
    The result that occurs instead:
    • Offline event fired when app is online.
    Test Case:
    Code:
         
     document.addEventListener("offline", CallbackFunction, false);   
     function CallbackFunction() {    // Handle the offline event  }


    HELPFUL INFORMATION
    Screenshot or Video:
    • none
    See this URL for live test case: http:// Debugging already done:
    • none
    Possible fix:
    • not provided
    Additional CSS used:
    • only default ext-all.css
    Operating System:
    • Android 4.0.3

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    899
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    I don't see anything here that is using Sencha Touch. document.addEventListener is native javascript and has nothing to do with Sencha Touch so this looks to be a device/phonegap issue.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1