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

Pinephone no GPS, no network location #80

Closed
jpmeijers opened this issue Sep 11, 2020 · 3 comments
Closed

Pinephone no GPS, no network location #80

jpmeijers opened this issue Sep 11, 2020 · 3 comments

Comments

@jpmeijers
Copy link

I'm testing an app on GloDroid on the Pinephone.

The following code checks if GPS and network locations providers are available before enabling them.

        // Register the listener with the Location Manager to receive location updates
        if (locationManager!!.isProviderEnabled(LocationManager.GPS_PROVIDER) ) {
            locationManager!!.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0L, 0f, locationListener)
        }
        if (locationManager!!.isProviderEnabled(LocationManager.NETWORK_PROVIDER)) {
            locationManager!!.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0L, 0f, locationListener)
        }

Both GPS_PROVIDER and NETWORK_PROVIDER are false. This means the app can not obtain the phone's location.

@rsglobal
Copy link
Member

@rsglobal
Copy link
Member

@rsglobal
Copy link
Member

This issue is tracked now by #104 (comment).

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

2 participants