1. #1
    Sencha User
    Join Date
    Jul 2011
    Location
    Pakistan
    Posts
    90
    Vote Rating
    3
    Answers
    3
    zonaib is on a distinguished road

      0  

    Default Unanswered: Ext.device.Connection.isOnline() is not working on android

    Hi

    Ext.device.Connection.isOnline() is not working on android.

    permissions are given in AndroidManifest.xml. but nothing happens

    any suggestions?

    Zonaib

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,087
    Vote Rating
    136
    Answers
    342
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      0  

    Default

    Are you packaging with Cordova?
    Get more personalized support via a support subscription.

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

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

    Need to include a test case use:
    The official Sencha Fiddle

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Location
    Pakistan
    Posts
    90
    Vote Rating
    3
    Answers
    3
    zonaib is on a distinguished road

      0  

    Default

    Hi

    I am using Sencha cmd tool for package.
    I did work on browser but when i make a build for android, not did not catch the internet on/off connection.

    Zonaib

  4. #4
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,087
    Vote Rating
    136
    Answers
    342
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      0  

    Default

    You can use Sencha Cmd to package with Cordova so that does not really answer my question. What version of Sencha Cmd are you using? What version of Sencha Touch? Did you initialize cordova or phonegap on your project with the following command "sencha cordova init" or "sencha phonegap init"? Or are you using the old Sencha Native Packager that was deprecated in Sencha Cmd 5.

  5. #5
    Sencha User
    Join Date
    Jul 2011
    Location
    Pakistan
    Posts
    90
    Vote Rating
    3
    Answers
    3
    zonaib is on a distinguished road

      0  

    Default

    Quote Originally Posted by fmoseley View Post
    You can use Sencha Cmd to package with Cordova so that does not really answer my question. What version of Sencha Cmd are you using? What version of Sencha Touch? Did you initialize cordova or phonegap on your project with the following command "sencha cordova init" or "sencha phonegap init"? Or are you using the old Sencha Native Packager that was deprecated in Sencha Cmd 5.
    I am using Sencha CMD 6.0.0.2 and sencha touch 2.4.2 and yes i do initialize with cordova with "sencha cordova init".

  6. #6
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,087
    Vote Rating
    136
    Answers
    342
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      0  

    Default

    OK do not use Ext.device the cordova device api directly.
    Get more personalized support via a support subscription.

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

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

    Need to include a test case use:
    The official Sencha Fiddle

  7. #7
    Sencha User
    Join Date
    Feb 2016
    Location
    China
    Posts
    6
    Vote Rating
    0
    korcstar is on a distinguished road

      0  

    Default Solutions?

    Quote Originally Posted by fmoseley View Post
    OK do not use Ext.device the cordova device api directly.
    I have try two way to detect network status

    navigator.onLine
    Ext.device.Connection.isOnline()

    all was work on sencha touch web version
    but not work for android app by cordova

    Then what is solution for this issue?

Similar Threads

  1. Replies: 9
    Last Post: 2 Mar 2016, 7:07 PM
  2. Replies: 27
    Last Post: 9 Sep 2014, 11:29 PM
  3. Replies: 2
    Last Post: 21 Aug 2013, 10:02 PM
  4. Ext.device.Connection isOnline() not reliable
    By diablo in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 28 Jun 2013, 4:56 AM
  5. [OPEN] Ext.device.Connection.isOnline() on airplane mode
    By stefx in forum Sencha Touch 2.x: Bugs
    Replies: 3
    Last Post: 24 Dec 2012, 5:53 AM

Thread Participants: 2