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

Background Location Update #1

Open
nidhinprathap opened this issue Mar 31, 2020 · 3 comments
Open

Background Location Update #1

nidhinprathap opened this issue Mar 31, 2020 · 3 comments

Comments

@nidhinprathap
Copy link

nidhinprathap commented Mar 31, 2020

In the foreground, the app works beautifully, but as soon as I make the app go to the background, the location updates don't get triggered at all. Have added ACCESS_BACKGROUND_LOCATION permission in Manifest and I'm requesting ACCESS_BACKGROUND_LOCATION permission on App Launch.

Android Manifest
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />

PermissionUtils

fun requestAccessFineLocationPermission(activity: AppCompatActivity, requestId: Int) { ActivityCompat.requestPermissions( activity, arrayOf( Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_BACKGROUND_LOCATION ), requestId ) }

Am i missing anything here ?

@abuzed
Copy link

abuzed commented Nov 17, 2020

@nidhinprathap Have you found a solution to make it work in the background?

@Conver
Copy link

Conver commented Jul 15, 2021

Manully giving the APP permission to use GPS always doesnt help either, so it must be something with the code not including background updates

@Conver
Copy link

Conver commented Jul 16, 2021

@mishra3452, you think it's possible to add so that background updates work too?

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

3 participants