Radar is the leading geofencing and location tracking platform.
The Radar SDK abstracts away cross-platform differences between location services, allowing you to add geofencing, location tracking, trip tracking, geocoding, and search to your apps with just a few lines of code.
See the Radar overview documentation here. See the Radar SDK documentation here.
You can also see a detailed SDK reference here.
See migration guides in MIGRATION.md.
Run make bootstrap to set up your environment for development and allow you to use the other make commands. It will call sudo to install some gems.
In the Example app, open the Tests tab, tap the settings gear, and pick Production, Staging, or Local under Environment. Each environment keeps its own publishable key. Apply & quit saves the choice; reopen the app to use it. On launch the app checks the key against production and staging, and a red strip across the top says so if no key is set or the key isn't valid on the selected environment. Local points both the API and verified hosts at your dev server: http://localhost:8081 in the Simulator, or your Mac's LAN IP (e.g. http://192.168.1.10:8081) on a device.
The Example Info.plist sets NSAllowsArbitraryLoads so plaintext HTTP to any dev-server IP works without a per-developer ATS exception; certificate pinning for the Radar verified hosts is preserved via NSPinnedDomains.
Note:
NSAllowsArbitraryLoadsdisables App Transport Security app-wide and exists here only to make local development convenient in this sample app. Do not copy it into a production app — it lets your app make insecure cleartext connections. Real apps should keep ATS enabled and add a narrowly-scopedNSExceptionDomainsentry only if a specific host truly requires it.
See a Swift example app in Example/.
To run the example app, clone this repository, build the app, and set your publishable API key in the Tests tab under Settings → Environment. You can also set default keys in AppDelegate.swift (DEFAULT_PUBLISHABLE_KEY for production, DEFAULT_STAGING_PUBLISHABLE_KEY for staging).
Setup Radar key check pre-commit hook to prevent accidental key leak when working with the Example app.
git config filter.radar-keys.clean hooks/clean-filter
git config filter.radar-keys.smudge hooks/smudge-filter
If you are using Swift Package Manager to manage your project's dependency, use this SPM specific repository instead
Interested in contributing? See CONTRIBUTING.md for how to build, test, and submit changes.
Have questions? We're here to help! Email us at support@radar.com.
