Comments (2)
well I am telling you this from experience doing background tasks like geofence and activityrRecongnition is nearly immpossible if you need do it checkOut how bridging work in react native you have to create an bridge between react native app and native code where you have to write geofence implementation code in kotlin
from cordova-plugin.
Hi,
for Android, we recommend using a foreground service to run IndoorAtlas SDK on background. There is an example at
https://github.com/IndoorAtlas/android-sdk-examples/blob/master/Basic/src/main/AndroidManifest.xml#L102
https://github.com/IndoorAtlas/android-sdk-examples/blob/master/Basic/src/main/java/com/indooratlas/android/sdk/examples/foregroundservice/ForegroundService.java
for iOS you need appropriate background permissions, see iOS example:
https://github.com/IndoorAtlas/ios-sdk-examples/blob/master/example/sdk-examples-Info.plist#L37C7-L37C51
https://github.com/IndoorAtlas/ios-sdk-examples/blob/master/example/src/Examples/BackgroundViewController.m
Unfortunately we don't currently have any examples or direct way to set those up in the IndoorAtlas React Native plugin.
It's important to include android:foregroundServiceType="location"
in the manifest foreground service declaration. By quick look it doesn't look like the RN library you linked uses that, maybe that is the issue ?
from cordova-plugin.
Related Issues (14)
- IndoorAtlas cordova with Phonegap or Visual Studio HOT 1
- Unable to build in Xcode HOT 1
- IOS Plugin Not compiling HOT 1
- Conflicts with cordova-plugin-geolocation plugin HOT 1
- Request: Get Waypoints data HOT 1
- Could not find com.android.support:appcompat-v7:27.0.2. HOT 1
- ok
- setPosition has been removed completely instead of allowing it to be called with coordinates HOT 1
- iOS - "API secret must not contain white space" HOT 1
- `destination is not defined` after wayfinding stop action called HOT 1
- iOS crash - attempt to insert nil object from objects[2] floorPlanToDictionary HOT 5
- Could not GET maven-metadata.xml HOT 2
- Plugin add fails with [email protected]
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 cordova-plugin.