01-17-2011 04:01 AM
Should 'hasDataCoverage' work for Blackberry Playbook Simulator (beta 2) ?
I'm using the WebWorks SDK .. and get error message: "you are not in coverage, try to add cities later"
Do I need to enable something else, or is this feature not enabled on the playbook simulator.
PS: Not sure if there is another place to post Playbook & Webworks related queries - there's no Tablet OS section for webdev, only for AdobeAir
Solved! Go to Solution.
01-17-2011 11:08 AM - edited 01-17-2011 11:11 AM
According to the API reference for WebWorks on PlayBook that API should be there:
It will return true if the PlayBook has an active WiFi connection.
All WebWorks related questions should be posted in the web forum
01-18-2011 12:47 AM
Guess you're right - the API is there and is working - problem is that it returns false ..
Thus maybe my question should have been - how do I configure the playbook simulator network configuration. Or what is the default simulator configuration and can I change this configuration on the simulator.
I assumed that since I can access webresources outside of the simulator (my web app content is external), that the network is enabled - and thus hasDataCoverage should return true.
Will try and query current network config.
01-18-2011 01:44 AM
When I print blackberry.network it says "undefined" ..
Not sure if this value is supported by playbook simulator - or if its meant to be undefined when no WiFi configured.
Again - is it possible to somehow enable network on playbook simulator ?
01-18-2011 11:54 AM
hasDataConnection returns true if there is at least one active network interface on the PB. It works fine on a real device. For some reason, the simulator always returns false. It could be because of the VMware virtual network bridge .
01-19-2011 09:05 AM
I just ignore value for now - until next release ..
Thought my network wasn't active because hasDataCoverage returned false, but XMLHttpRequest query seems to work, just failing somewhere down the line when I try and get results.
Anyhow will figure it out.