Webhook
Unlike traditional methods where one system constantly polls another system for information, Webhooks ensures that data is sent automatically when an event occurs.
Last updated
Unlike traditional methods where one system constantly polls another system for information, Webhooks ensures that data is sent automatically when an event occurs.
Last updated
First, login to the Roam dashboard -> Select a project or create one and add apps to it.
Add geofences for that project from the Roam geofence page accessible via the top navigation tabs. Enable the geofence status for triggering events whenever the user using your app enters or exits the geofence.
Go to the settings tab on the dashboard. Under the Webhooks section, you will see options for Webhooks and Slack integration. There is a provision to enable either Webhooks or Slack integration to subscribe to the user events from the server-side. You can also test these events by selecting an event to test at the given endpoint.
You can now enable this feature by entering the respective URLs. Remember to configure the same URL at your end to receive Webhook or Slack notifications.
NOTE: These are the URLs you create from your Slack and put in the Roam dashboard.
After integration, you can monitor the user locations, geofence and trip events.
Each POST request will consist of any one of the three objects.
Event - To notify geofence entry and exit events.
User - To notify user movement updates with respect to user activity. ie. Stop “S”, Moving “M”.
Trip - To notify trip start and end.
You can also receive real-time location events client-side via the SDK with didUpdateLocation()
which has less latency.