Comments (3)
I've added the Only iOS option because I think in Android there's no such problem, right?
from react-native-boundary.
As of now that is not possible. The IOS code have hardcoded checks for kCLAuthorizationStatusAuthorizedAlways
However if I were to do something like this when app is in focus only I would probably just start updating for location changes and check weather or not current location is in bounds using pure js (via some great-circle distance lib) since i would probably need greater accuracy, less delay and delivery consistancy than android/ios geofencing services provide. But that would drain more battery, so i guess it depends on the use-case. Would that fit your use-case or do you think this lib should update to resolve that hard-coded permission check?
from react-native-boundary.
Thanks for the reply!
In my case, I must start an audio file when the user enters into a region, but this library is not working so well both Android and iOS, not registering the entering in a region.
Also, users can choose "only when in use" permission, making this library useless :(
I'll try monitoring user position, but I'm afraid for the battery like you said...
from react-native-boundary.
Related Issues (20)
- How to check boundary for a line/route between two points? HOT 1
- Pod Fail - HOT 5
- Boundary "on Enter" not firing on iOS 13
- New Event - Currently in the added geofence or not
- events not firing in android 10 in react-native 0.61.5 HOT 6
- Headless event listener not called when app is killed HOT 24
- [Android] Re-register boundaries on device boot
- Problem in testing the app HOT 1
- Boundary dont start when i allow only use in app HOT 4
- Is there any way that we can get events for Gps Turned off/on?
- Updated podspec file
- Headlessjs doesn't take effect when app is killed and when is background
- Issue PendingIntent.FLAG_IMMUTABLE app crashed on Android app Target 31 (Android 12) HOT 1
- Got error code 1004
- React Native Boundary Enter and Exit Trigger
- App Error JobIntentService HOT 2
- Pemission issue HOT 1
- need to reboot device for geofence in/out events
- how to integrate in kotlin
- new NativeEventEmitter()` requires a non-null argument.
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-boundary.