You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There will be two events, one to tell the developer the device is now connected to the internet, and one that indicates that network connectivity is lost.
Acceptance Criteria
These events will match the Cordova signatures for the online/offline events.
When the device is offline, and then gains internet connectivity, the online event should be fired.
When the device is online, and loses internet connectivity, the offline event should be fired.
To listen for the online event, developers can register using the blackberry.event.addEventListener method.
eg. blackberry.event.addEventListener("online", onOnline);
To listen for the offline event, developers can register using the blackberry.event.addEventListener method.
eg. blackberry.event.addEventListener("offline", onOffline);
The "blackberry.event" feature id will be used for whitelisting.
The text was updated successfully, but these errors were encountered:
WebKit on playbook already support for online/offline events and the navigator.isOnline property. Would these suffice? I would hate to see a bunch of work done to implement something that is already done.
See https://developer.mozilla.org/en/Online_and_offline_events
Awesome, if our browser has this support then I'll close this requirement, as you say, no need to duplicate functionality. Thanks
----- Original Message -----
From: Jeff Rogers [mailto:reply@reply.github.com]
Sent: Monday, April 23, 2012 01:00 PM
To: Ken Wallis
Subject: Re: [BB10-Webworks-API] As a WebWorks developer, I can register for events that tell me when the connectivity of the device changes (#20)
WebKit on playbook already support for online/offline events and the navigator.isOnline property. Would these suffice? I would hate to see a bunch of work done to implement something that is already done.
See https://developer.mozilla.org/en/Online_and_offline_events
Reply to this email directly or view it on GitHub: #20 (comment)
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
I think it's close we support the navigator attribute, and you can attach listeners to the windows object via addEventListener or using windows.online/offline=some function. Some tests at http://www.html5demos.com. We even supported this on BB7.
There will be two events, one to tell the developer the device is now connected to the internet, and one that indicates that network connectivity is lost.
Acceptance Criteria
eg. blackberry.event.addEventListener("online", onOnline);
eg. blackberry.event.addEventListener("offline", onOffline);
The text was updated successfully, but these errors were encountered: