We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey there,
Any chance i can send an http request to a server instead of printing the location on getLocationUpdates method?
getLocationUpdates
BackgroundLocation.getLocationUpdates((location) { print(location); });
The text was updated successfully, but these errors were encountered:
Well,
I figure that the problem is not the request to server but the background service that not work.
I've managed the AppLifecycleState on my App and when i pause it i set this code:
void didChangeAppLifecycleState(AppLifecycleState state) async { switch (state) { case AppLifecycleState.paused: await BackgroundLocation.startLocationService(); await BackgroundLocation.setAndroidConfiguration(5000); BackgroundLocation.getLocationUpdates((location) { print(DateTime.now()); }); break;
And when i pause the app i get the data/time but it stops after 30 seconds (more or less).
Sorry, something went wrong.
I solved my problem with this answer.
No branches or pull requests
Hey there,
Any chance i can send an http request to a server instead of printing the location on
getLocationUpdates
method?The text was updated successfully, but these errors were encountered: