Giter Club home page Giter Club logo

Comments (14)

ecjs avatar ecjs commented on August 23, 2024 1

^^ For me, that is definitely the case. Location services. Although to achieve this I ended up using this:
https://github.com/joshblour/react-native-permissions

from react-native-background-geolocation.

christocracy avatar christocracy commented on August 23, 2024

If they were available, what would you want to do with them?

On Wednesday, November 25, 2015, Norman Rzepka [email protected]
wrote:

Is there a way to quickly determine if GPS is available to use?
Something like CLLocationManager/locationServicesEnabled
https://developer.apple.com/library/ios/documentation/CoreLocation/Reference/CLLocationManager_Class/#//apple_ref/occ/clm/CLLocationManager/locationServicesEnabled
and CLLocationManager/authorizationStatus
https://developer.apple.com/library/ios/documentation/CoreLocation/Reference/CLLocationManager_Class/#//apple_ref/occ/clm/CLLocationManager/authorizationStatus
?


Reply to this email directly or view it on GitHub
#34
.

Snet form Gmail Mobile

from react-native-background-geolocation.

normanrz avatar normanrz commented on August 23, 2024

I have an app where the user starts and stops tracking explicitly. I want to give the user feedback on the availability of the GPS status as soon as they enter the app (ie. before they try to start tracking).

from react-native-background-geolocation.

christocracy avatar christocracy commented on August 23, 2024

Ok, those look easy enough to implement.

from react-native-background-geolocation.

cosmith avatar cosmith commented on August 23, 2024

+1 on this!

from react-native-background-geolocation.

gunters63 avatar gunters63 commented on August 23, 2024

+1 on this.

from react-native-background-geolocation.

ecjs avatar ecjs commented on August 23, 2024

Would love to see this! +1

from react-native-background-geolocation.

christocracy avatar christocracy commented on August 23, 2024

What do you hope to did with this information? Why GPS specifically? This
isn't even possible on iOS. I wonder if you're misusing the word "GPS"
instead of "location services"?

On Sunday, April 3, 2016, Mark Harrell [email protected] wrote:

Would love to see this! +1


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#34 (comment)

Snet form Gmail Mobile

from react-native-background-geolocation.

ecjs avatar ecjs commented on August 23, 2024

Basically, I wanted some user feedback in case they accidentally denied permissions..I have already seen a few users do this and wonder why the app wasn't recording location 😭

from react-native-background-geolocation.

christocracy avatar christocracy commented on August 23, 2024

Just listen to the plugin's location errorCallback. You're provided an
error code, one of which means "location access denied"

On Sunday, April 3, 2016, Mark Harrell [email protected] wrote:

Basically, I wanted some user feedback in case they accidentally denied
permissions..I have already seen a few users to this and wonder why the app
wasn't recording location [image: 😭]


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#34 (comment)

Snet form Gmail Mobile

from react-native-background-geolocation.

ecjs avatar ecjs commented on August 23, 2024

Ahh, that works for me. Thanks!

from react-native-background-geolocation.

christocracy avatar christocracy commented on August 23, 2024

See wiki for error codes
https://github.com/transistorsoft/react-native-background-geolocation/wiki/Error-Codes

On Sunday, April 3, 2016, Mark Harrell [email protected] wrote:

Ahh, that works for me. Thanks!


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#34 (comment)

Snet form Gmail Mobile

from react-native-background-geolocation.

ecjs avatar ecjs commented on August 23, 2024

Lets say we get an error code back of 1, we know that permission is denied, and we change some state that identifies that the users permission is denied. Once the user changes their permissions to allow access...how would you recommend accessing that?

My thoughts are:
Change the permission state to false on error code 1.
If the current state is false, and we get a positive location change to true.

Seems basic enough, my only thoughts here are that we may not get a user location if they are stationary.

from react-native-background-geolocation.

christocracy avatar christocracy commented on August 23, 2024

This is implemented now by listening to providerchange event.

from react-native-background-geolocation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.