Giter Club home page Giter Club logo

Comments (5)

jrtibbetts avatar jrtibbetts commented on June 12, 2024

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.

OmarGulzar avatar OmarGulzar commented on June 12, 2024

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.

OmarGulzar avatar OmarGulzar commented on June 12, 2024

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.

jrtibbetts avatar jrtibbetts commented on June 12, 2024

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.

brettguenther avatar brettguenther commented on June 12, 2024

@OmarGulzar - If you are still having issues here, please file a new issue. In that please provide the following:

  1. Confirmation you are initializing Radar in both native code and in react native (Radar.initialize())
  2. 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)

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.