ralexrdz / geo-location-javascript

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

Not working on real BlackBerry #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Nothing happen on real BlackBerry devices.

It seems there is a javascript compatibility problem : it doesn't enter the
BB part : "else if(typeof(window.blackberry)!="undefined" &&
blackberry.location.GPSSupported)".

I made tests and it's the Palm Pre part with Mojo "else if
(typeof(Mojo.Service.Request)!="Mojo.Service.Request")" that is the problem.

I could fix it by putting the BlackBerry elseif before the Mojo elseif.

Now, it's trying to get a signal.
However, it didn't ask me permission and it's still answering "Position
unavailable" while in the settings I could get a new position without problem.

I will try to see if I can fix it too.

Original issue reported on code.google.com by jean.pas...@gmail.com on 29 Jul 2009 at 9:44

GoogleCodeExporter commented 9 years ago
Ok it's working now: to make it work, you should authorise Javascript to ask for
geolocation in the browser settings : Options / General Properties

I didn't find it before because the french translation for this setting is 
really
meaningless : "Activer la prise en charge d'emplacement JavaScript"  :(

Original comment by jean.pas...@gmail.com on 29 Jul 2009 at 10:14

GoogleCodeExporter commented 9 years ago
great that you got it working. 

>I made tests and it's the Palm Pre part with Mojo "else if
>(typeof(Mojo.Service.Request)!="Mojo.Service.Request")" that is the problem.

>I could fix it by putting the BlackBerry elseif before the Mojo elseif.
Do I still need make that fix?

Original comment by whoiss...@gmail.com on 29 Jul 2009 at 9:41

GoogleCodeExporter commented 9 years ago
Yes, you should insert that fix, just exchange the 2 "else if" and it works.
(on BB Bold 4.6)

Original comment by jean.pas...@gmail.com on 30 Jul 2009 at 7:44

GoogleCodeExporter commented 9 years ago
Hey, 
at first thank you for this smart js-piece. 

Regarding the "Mojo-Problem" I'd like to mention that an additional check like
if (typeof(window.Mojo)!="undefined" &&
typeof(Mojo.Service.Request)!="Mojo.Service.Request") 

really solves the problem because the code rearranging leads to an error in my
firefox console (mojo undefined). 

Just liked to mention that. 
Thanks again for the script. 
Regards

Original comment by pazifikw...@gmail.com on 5 Aug 2009 at 6:56

GoogleCodeExporter commented 9 years ago
thanks for the comments, i made the mojo fix. i will upload a couple of images 
that
illustrate how to turn on javascript location support for blackberries.

Original comment by whoiss...@gmail.com on 9 Nov 2009 at 2:34

GoogleCodeExporter commented 9 years ago

Original comment by whoiss...@gmail.com on 9 Nov 2009 at 2:34