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
I followed "How to use" on pub.dev and use this function.
ElevatedButton( onPressed: () async { await BackgroundLocation.setAndroidNotification( title: 'Background service is running', message: 'Background location in progress', icon: '@mipmap/ic_launcher', );
await BackgroundLocation.startLocationService(); BackgroundLocation.getLocationUpdates((location) { _bloC.background = _bloC.backgr + 1; print("-------------------------"); print(location.latitude.toString()); print(location.longitude.toString()); print(DateTime.now()); print("-------------------------"); }); }, child: Text('Start Location Service')),
But it doesn't work when the app pause (put the app into the background). I use a real device Android.
The text was updated successfully, but these errors were encountered:
cihazın izinlerini kontrol et, konum iznini arka planda konum güncellemeleri almadan önce ayarla eğer izin verilmişse uygulamayı başlat.
Sorry, something went wrong.
Yes, I put permissions in AndroidManifest and the device accepted location permission. Sometimes it works, but it just work in about 10seconds.
Maybe check this answer
No branches or pull requests
I followed "How to use" on pub.dev and use this function.
ElevatedButton(
onPressed: () async {
await BackgroundLocation.setAndroidNotification(
title: 'Background service is running',
message: 'Background location in progress',
icon: '@mipmap/ic_launcher',
);
But it doesn't work when the app pause (put the app into the background).
I use a real device Android.
The text was updated successfully, but these errors were encountered: