system.hasDataCoverage is no longer supported in BB10?

According to the documentation of the API WebWorks, when we moved to BB10, we lost the blackberry.system.hasDataCoverage () function.  The console seems to confirm this:

Eception TypeError: Object [object Object] has no method 'hasDataCoverage '.

Is there an alternative BB10 to verify coverage before issuing a request?

Thank you

There is a HTML5 standard to do this, so a platform-specific API is no longer necessary:

if (navigator.onLine) {
   console.log("online");
} else {
   console.log("offline");
}

Background: hasDataCoverage() is born on the BlackBerry OS 5.0, before the era of HTML5

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Some keys on the keyboard for Satellite A500-025 are strange

    My Toshiba Satellite A500-025 has a keyboard with strange symbols on it. The back key on the right side of the keyboard is also a vertical rectangular key with 2 keys between the key containing the semicolon and the return key which is too far. On ot

  • Satellite A100: High grade noise / problem solved using RMClock 2.25

    Here are the screenshots of how I calibrated RMClock to solve this problem on my Satellite A100 with processor T7200.http://img99.imageshack.us/img99/408/rm1pa2.jpghttp://img99.imageshack.us/img99/2816/rm2ik6.jpghttp://img99.imageshack.us/img99/3485/

  • Computer will not recognize a second connection of GPIB

    I have two connections to a Tektronix Oscilloscope to TDS210 GPIB and generator features a synthesized Stanford Research Systems. The Oscilloscope is recognized in the measurement and Automation Explorer as GPIB0::1:INSTR, but the device is not recog

  • Kill a thread does not

    Hi all I have a question about the best way to kill a thread does not. My request has been implemented with two sons: 1 update thread - to extract the values from a web service using JSR 172 created heels2. view the Thread - to display the retrieved

  • How to determine the server message on existing unity store

    I have an existing unit with a separate message store. The recovery of message for the voicemails stored user is about 5 to 8 seconds. This just started happening. How can I determine which server has the message store and what could cause me behind?