Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Posts: 1
Registered: ‎03-30-2011
My Device: Developer
My Carrier: Developer

Accessing Location Data from a Website

Hi Everyone,


I am working on a mobile web-based application that uses smartphone geolocation data.


I'm aware that the javascript functions for BlackBerry work (ie blackberry.location.GPSSupported will return true), but I have not been able to get blackberry.location.latitude or blackberry.location.longitude to return anything but 0. I have refreshed the location on the BlackBerry and checked that all BB settings are correct... still nothing. Am I missing something huge like these functions cannot be called by a web browser?


Thanks so much for any tips you might have.