Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geolocation: setFrequency() has no effect on android #455

Open
ericfischerrv opened this issue Feb 24, 2017 · 0 comments
Open

Geolocation: setFrequency() has no effect on android #455

ericfischerrv opened this issue Feb 24, 2017 · 0 comments

Comments

@ericfischerrv
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant