Results 1 to 2 of 2

Thread: HTC One X - false offline event

    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
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,421
    Vote Rating
    1271
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •