Comments (5)
Can you share some relevant bits of code from your app? Are you tracking (startTracking()
), and if so, what tracking options are you using?
from react-native-radar.
Thankyou for the response
No i am not calling the startTracking() instead calling the below
Radar.trackOnce()
.then(result => {
console.log('trackOnce:', result);
})
.catch(err => {
console.log('trackOnce:', err);
});
Radar.on('events', result => {
this.setState({
events: result.events,
});
});
Radar should send an "enter event" in the app when a Fence is entered and an "exit event" when the fence is exited.
from react-native-radar.
The simulate feature in the "React native radar website dashboard" seems to fire the events accurately, but it is just the In App events don't seem to trigger properly.
Not sure if i am doing something wrong.
Kindly help
from react-native-radar.
Can you try making your Radar.on()
call before calling Radar.trackOnce()
? It's possible that the events are being fired before your handler is registered for them.
from react-native-radar.
@OmarGulzar - If you are still having issues here, please file a new issue. In that please provide the following:
- Confirmation you are initializing Radar in both native code and in react native (
Radar.initialize()
) - You have configured the listeners outside of any view components.
Beyond this, I recommend testing other Radar listeners including the error and location listeners: https://radar.com/documentation/sdk/react-native#background-tracking. The dashboard simulator does not trigger events on the associated device (meant for testing dashboard configured integrations) and events only occur when Radar events fire.
from react-native-radar.
Related Issues (20)
- "Limit: The max number of places to return" mentioned in both Search places and Search users API in document HOT 2
- Device Specific Methods returning [Error: ERROR_LOCATION] HOT 2
- Launcher Icon disappearing HOT 4
- ios app build crashes HOT 4
- Android is not giving location accuracy HOT 2
- How can we tell when the user hasn't yet accepted or denied location permissions? HOT 2
- ERROR_LOCATION when setting desiredStoppedUpdateInterval to 0 HOT 2
- Help with starttrip function HOT 3
- users near a geofence ?
- No coordinates returned by `searchPlaces`? HOT 1
- Create new trip from API?? HOT 2
- startTrackingCustom never firing location event? HOT 1
- IOS significant location change not working as expected HOT 1
- TypeScript definitions HOT 1
- android.app.ForegroundServiceDidNotStartInTimeException - Context.startForegroundService() did not then call Service.startForeground() HOT 2
- Confidence level not showing on android responses in SDK HOT 4
- An isTracking method would be helpful HOT 2
- Autocomplete input style option not working in react native
- IOS Background tracking not working when we close app. HOT 2
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-radar.