facebook

navigator.network : CLOSED

  1. MyEclipse IDE
  2.  > 
  3. Mobile Tooling
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #349457 Reply

    mapelo63
    Member

    I’m trying to get the connection type in a HTML5 Mobile Application Project, but “navigator.network” always return undefined.

    Is there somethin especial I have to configure?

    Thanks

    #349477 Reply

    Hi mapelo63,

    Note that mobile apps created with MyEclipse use Phonegap 2.2.0
    Before Cordova 2.2.0, the Connection object existed at: navigator.network.connection.
    To match the spec, this was changed to navigator.connection in 2.2.0.

    So you should use the Connection object at Phonegap doc specifies:
    http://docs.phonegap.com/en/2.2.0/cordova_connection_connection.md.html

    Hope this is helpful. Let us know how it goes.

    #349498 Reply

    mapelo63
    Member

    Thanks, you are right 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: navigator.network : CLOSED

You must be logged in to post in the forum log in