1
Sign up for Radar
If you haven’t already, sign up for Radar to get your API key. You can create up to 1,000 geofences and make up to 100,000 API requests per month for free.Get API keys
2
Create geofences
There are several ways to create geofences:The
tag
is a group for the geofence. For example, you could set tag = venue
for gaming, or tag = restaurant
for restaurants. In this tutorial, we’re going to use tag = store
.3
Initialize the SDK
Initialize the SDK with your publishable API key.
4
Request foreground permissions
5
Change the UI when the user is in a geofence
Call
Radar.trackOnce()
to track the user’s location in the foreground. In the callback, check user.geofences
to determine if the user is in a store, then change the UI to show the on-premise experience.