# GeoLocation.location not working on mobile Device

**URL:** <https://forums.fusetools.com/t/geolocation-location-not-working-on-mobile-device/4591>\
**Category:** Bug Reports\
**Created:** [December 28, 2017, 7:15pm UTC](https://forums.fusetools.com/t/geolocation-location-not-working-on-mobile-device/4591 "2017-12-28T19:15:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jxns](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@Jxns](https://forums.fusetools.com/u/Jxns)\
**Post date:** [December 28, 2017, 7:15pm UTC](https://forums.fusetools.com/t/geolocation-location-not-working-on-mobile-device/4591/1 "2017-12-28T19:15:28Z")

</div>

Hey guys, I might need your help again.  
I am not sure if this is a bug or if I just did something wrong.

I am trying to get my current location.  
I exactly used the example from [GeoLocation](https://www.fusetools.com/docs/fuse/geolocation/geolocation).

I also added `"Fuse.GeoLocation"` to my .unoproj.

On my desktop-preview, the example is working fine.  
But on my mobile device, only the timeout-Location is working.  
At this moment, I mostly need the immediateLocation, but on my mobile Device, the immediateLocation remains empty ( {} ).

I also tried the following code, which is working on my mobile device:

```auto
GeoLocation.getLocation(5000).then(function(location) {
      myLocation.value = JSON.stringify(location);
    }).catch(function(fail) {
        console.log("getLocation fail " + fail);
    });

```

But why is the immediateLocation with `GeoLocation.location` not working?

(I am using a Samsung Galaxy S7 with Android 7.0)

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [December 29, 2017, 10:01am UTC](https://forums.fusetools.com/t/geolocation-location-not-working-on-mobile-device/4591/2 "2017-12-29T10:01:12Z")

</div>

It is not exactly that it _is not working_. As the docs describe, `GeoLocation.location` returns `The last known location`. There likely is no last known location in your case, because recording one requires your app to have requested access to GeoLocation services, and polled the location data at least once.

After you have used `getLocation()`, the immediate location should be filled, also on subsequent requests.
