GithubHelp home page GithubHelp logo

Comments (3)

mrigo avatar mrigo commented on July 21, 2024

I've added the Only iOS option because I think in Android there's no such problem, right?

from react-native-boundary.

mikaelengstrom avatar mikaelengstrom commented on July 21, 2024

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.

mrigo avatar mrigo commented on July 21, 2024

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)

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.