jenraulerson / geo-location-javascript

Automatically exported from code.google.com/p/geo-location-javascript
1 stars 1 forks source link

Location is returned as 0,0 on BlackBerry 6.0.0.415 (1659) #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Location is returned as 0,0 on BlackBerry 6.0.0.415 (1659)

Original issue reported on code.google.com by robwolfb...@gmail.com on 17 Dec 2011 at 2:43

GoogleCodeExporter commented 9 years ago
Not sure if this is useful, but I've found that this condition of the scrip is 
executed with this phone:

else if (typeof(navigator.geolocation)!=u)
 {
  provider=navigator.geolocation;
  pub.getCurrentPosition = function(success, error, opts)

I might be mistaken, but I thought this condition might execute instead:
 else if(typeof(window.blackberry)!=u && blackberry.location.GPSSupported)
  {

Original comment by robwolfb...@gmail.com on 18 Dec 2011 at 4:16

GoogleCodeExporter commented 9 years ago
I put this this condition:
 else if(typeof(window.blackberry)!=u && blackberry.location.GPSSupported)
  {

above this condition:
else if (typeof(navigator.geolocation)!=u)
 {

And it's now working for my Blackberry Curve (model 9330, OS 6).  Is this a 
safe change?  Will it work with other Blackberry phones?  Will it break any 
other devices?

Thanks for your help.

Original comment by robwolfb...@gmail.com on 18 Dec 2011 at 4:23