eclipsesource / eclipsesource/tabris

Geolocation: setFrequency() has no effect on android

Open
#455 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
56
Forks
18
PR merge metrics
No merged PRs in 30d

Description

We are testing a function to read out the geolocation in background while the user can user the app as usual. Therefore, we added `Geolocation.watchPosition()` to a page (with listeners, of course).

What we now want to do is to read the location in certain intervals. This is how we tried to do it:

```
GeolocationOptions options = new GeolocationOptions();
options = options.setFrequency(AppProperties.getGeolocationReadFrequency());
if (device.getPlatform() == Platform.IOS) {
options = options.enableHighAccuracy();
container.getLocation().watchPosition(options);
} else {
container.getLocation().watchPosition(options);
}
```

Unfortunatly, on Android the position is read every minute. The value from the AppProperties is returned right. On iOS, `setFrequency()` works fine.

So we assume that there's a problem within Tabris.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.