06-29-2011 05:31 AM
I'm trying to add an listener to check the coverage information. I'm using PhoneGap and BB6. So when I add the below line, Nothing happens.
document.addEventListener("online", onOnline, false); document.addEventListener("offline", onOffline, false);
Dont know if this is the right place to post this question. Also Other than PhoneGap, is there any other way to add event Listeners from BB WW application?
Solved! Go to Solution.
06-29-2011 07:45 AM
Hmm... I'm not sure if BB6 has the HTML5 online/offline events.
You can use the hasDataCoverage() method and onCoverageChange event as an alternative
06-29-2011 02:58 PM
Online and Offline events work fine for me.
window.addEventListener("online", online_function, false);
window.addEventListener("offline", offline_function, false);
06-30-2011 01:00 AM
06-30-2011 01:27 AM
Finally I got it working for me. I made two mistakes here.
Now I got it working. Thanks for all your time
06-30-2011 07:49 AM
Yes this works on BB6 and playbook.
This has been fully tested and is in production.