Location sensor cache?

this issue im having is quite simple

  1. i turn on the app and a few secs later the gps coords are shown
  2. but when i wait(waited for 5 minutes), the coords doesnt even change
  3. yes i set the interval to 10000ms and i tested it outside
  4. at first i thought it was just a glitch so i turned off the app, and a few secs later i turned it on, but THE SAME coords shows up

help

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

You probably are experiencing the expected behavior as described in Using the Location Sensor

this behavior might be happening.

  • because you are using the default Provider which is fused for Android10+ It works like this Fused Provider.. If you do not specify otherwise the Location Sensor defaults to fused by DESIGN.
  • are not setting the Provider and are not locking the provider to gps and you do not using the LocationChanged Block. In this situation, Google will decide which Provider to use.
  • you set Coarse Location rather than Precise.
  • when using a fused provider and you restart your app you will often get the last known location of the user's device. That seems to be what you experience. (see the link provided above).
  • etc.

The behavior you see could be many other things. Without seeing your aia or an image of your Blocks and knowing which Android you use we can't be more specific.