Comments (14)
^^ 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.
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.
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.
Ok, those look easy enough to implement.
from react-native-background-geolocation.
+1 on this!
from react-native-background-geolocation.
+1 on this.
from react-native-background-geolocation.
Would love to see this! +1
from react-native-background-geolocation.
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.
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.
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.
Ahh, that works for me. Thanks!
from react-native-background-geolocation.
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.
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.
This is implemented now by listening to providerchange
event.
from react-native-background-geolocation.
Related Issues (20)
- Android Application Not Responding when the library checks permissions
- Manually request motion permissions HOT 1
- getLocations type error HOT 1
- Problem in handling permissions using onProviderChange. Two scenarios I am facing the issue
- `- BackgroundGeolocation is configured and ready` never logs true in the example code HOT 7
- User Arrow Direction on Android Often Misrepresents Users Walking/Facing Direction HOT 1
- Can not debug on android HOT 7
- Could not find any matches for com.transistorsoft:tslocationmanager-v21:+ as no versions of com.transistorsoft:tslocationmanager-v21 are available. HOT 11
- Do I need to buy the source code of this TSLocationManager? HOT 1
- How to use the TSLocationManager static library? HOT 1
- Background location didn't respond if I stops for certain minutes and then moving again HOT 5
- Discussion: Time-based Tracking and backgrounded app HOT 1
- LocationRequestService ANR on Android 14 HOT 10
- License Validation Issue After Upgrading React Native and react-native-background-geolocation (Android Only) HOT 3
- Battery Drain Issue (IOS) HOT 5
- Enter/exit geofence is not detected in trackingMode Geofences only (iOS) HOT 7
- Why is event optional?
- How do I initially (before reaching 200m) record positions accurately? HOT 1
- Continuous Location Tracking in Background for Android and iOS HOT 11
- Upgrading the plugin version failed on Android.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-background-geolocation.