react-native-boundary | Native implementation of geofencing/region monitoring | Map library
kandi X-RAY | react-native-boundary Summary
kandi X-RAY | react-native-boundary Summary
Native implementation of geofencing/region monitoring
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Add a geofences
- Adds a geofence
- Creates a list of geofences from a readable array
- Request Permissions
- Creates a geofence from a map
- Creates a geofencing request
- Add a new geofencing object
- Adds a geofence
- Creates a list of geofences from a readable array
- Request Permissions
- Creates a geofence from a map
- Creates a geofencing request
- Handles a workflow event
- Send event
- Returns the error string for a given geofence status code
- Remove a boundary request
- Attempts to remove a geofence
- Remove boundary requests from a readable Array
- Attempts to remove a geofence
- Remove all geofences
- Returns a PendingPendingIntent which is currently bound to the activity
- Creates native modules
- Broadcast a geofence event
- Returns the task configuration that should be used to execute the task
- Creates JavaScript modules
- Create view managers
react-native-boundary Key Features
react-native-boundary Examples and Code Snippets
# install permissions library
npm i react-native-permissions@3.x
# install push-notification library
npm i react-native-push-notification@8.x
# install forked react-native-boundary
npm i github:teambitvictory/react-native-boundary#b4d143
Community Discussions
Trending Discussions on react-native-boundary
QUESTION
we would like to push local notification after user arrived boundary company. so which library should we use. one more think if user terminate the app, app can push notification when user arrived company.I try to use https://github.com/eddieowens/react-native-boundary and https://github.com/mauron85/react-native-background-geolocation
...ANSWER
Answered 2021-Oct-25 at 23:41You need to use geo-fence for sure.
mauron85/react-native-background-geolocation not have geo-fence feature according to its README file so you can't use the library for this purpose.
I have used transistorsoft/react-native-background-geolocation to make exactly the same thing, it works with no issue, but it's not free.
react-native-boundary is free, but not support. According to open GitHub issues, it has some problems, repo owner not supporting the library for almost 2-3 years. You can still solve a lot of problems with open PRs. I didn't use it, but if you want to go with free, I suggest you examine it.
EDIT: I make it with react-native-boundary
, check below code:
Install dependencies:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react-native-boundary
Go to node_modules ➜ react-native-boundary and add RNBoundary.xcodeproj
In XCode, in the project navigator, select your project. Add libRNBoundary.a to your project's Build Phases ➜ Link Binary With Libraries
Run your project (Cmd+R)<
Open up android/app/src/main/java/[...]/MainActivity.java
Add import com.eddieowens.RNBoundaryPackage; to the imports at the top of the file
Add new RNBoundaryPackage() to the list returned by the getPackages() method
Append the following lines to android/settings.gradle: include ':react-native-boundary' project(':react-native-boundary').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-boundary/android')
Insert the following lines inside the dependencies block in android/app/build.gradle: compile project(':react-native-boundary')
Add the ACCESS_FINE_LOCATION permission to your AndroidManifest.xml like so,.
NSLocationAlwaysUsageDescription
NSLocationWhenInUseUsageDescription
NSLocationAlwaysAndWhenInUseUsageDescription
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page