Test this code in your GP:
if(!navigator.geolocation) {
alert('GPS desactivado');
}
else {
navigator.geolocation.getCurrentPosition(function(position) {
alert(position.coords.latitude, position.coords.longitude);});
}
2013/8/15 Andreas Gal <[email protected]>
>
> Hi Zsolt. There is a known problem with the GP devices when it comes to
> geolocation. Doug has developed a tool for developers that can fake a
> location and is useful for testing. To get an actual GPS fix you have to
> make sure the device can scan the sky for quite a while (up to an hour or
> so). The AGPS (assisted GPS) functionality seems to be configured
> incorrectly in the device modem, so the GPS receiver has to download
> satellite data directly from GPS and is unable to get it quickly from the
> network.
>
> I hope this helps.
>
> Andreas
>
>
> Zsolt Réczi wrote:
>
>> I founded something strange. My Geeksphone Keon can't get geolocation.
>> Does
>> anybody know why?
>>
>> ---------- Forwarded message ----------
>> From: Simon BLUM<[email protected]>
>> Date: 2013/8/14
>> Subject: Re: [b2g] Firefox OS Geolocation Maps
>> To: [email protected]
>>
>>
>> Hi Zsolt,
>>
>> I developped RunRunRun (a runkeeper like for FirefoxOS and it uses
>> Geolocation) , I think I can help you.
>> My source code is available there : https://github.com/guizmo51/**
>> Run-Run-Run<https://github.**com/guizmo51/Run-Run-Run<https://github.com/guizmo51/Run-Run-Run>
>> >
>>
>> I don't understand what's wrong. Can you explain ? What's the relation
>> between Geolocation and your map ? Do you have log ?
>>
>> Simon
>>
>> Le 14/08/13 15:18, Zsolt Réczi a écrit :
>>
>> Hello,
>>>
>>> I need a help in Geolocation. I'm trying to make a Map app for Firefox OS
>>> which request the users location. In Simulator it is running very nice,
>>> but
>>> when i start it on a real device the map isn't loading. What can be the
>>> problem?
>>>
>>> Zsolt Reczi
>>> ______________________________****_________________
>>> dev-b2g mailing list
>>> [email protected]
>>> https://lists.mozilla.org/****listinfo/dev-b2g<https://lists.mozilla.org/**listinfo/dev-b2g>
>>> <https://**lists.mozilla.org/listinfo/**dev-b2g<https://lists.mozilla.org/listinfo/dev-b2g>
>>> >
>>>
>>>
>> ______________________________****_________________
>> dev-b2g mailing list
>> [email protected]
>> https://lists.mozilla.org/****listinfo/dev-b2g<https://lists.mozilla.org/**listinfo/dev-b2g>
>> <https://**lists.mozilla.org/listinfo/**dev-b2g<https://lists.mozilla.org/listinfo/dev-b2g>
>> >
>> ______________________________**_________________
>> dev-b2g mailing list
>> [email protected]
>> https://lists.mozilla.org/**listinfo/dev-b2g<https://lists.mozilla.org/listinfo/dev-b2g>
>>
> ______________________________**_________________
> dev-b2g mailing list
> [email protected]
> https://lists.mozilla.org/**listinfo/dev-b2g<https://lists.mozilla.org/listinfo/dev-b2g>
>
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g