Skip to content

Latest commit

 

History

1,273 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Radar

CocoaPods Carthage

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.

Documentation

See the Radar overview documentation here. See the Radar SDK documentation here.

You can also see a detailed SDK reference here.

Migrating

See migration guides in MIGRATION.md.

Development

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.

Targeting a local server

To point the SDK at a dev server during development, set TARGET_HOST at the top of AppDelegate in Example/Example/AppDelegate.swift to its address:

  • Simulator: http://localhost:8081 — the simulator reaches your Mac over loopback.
  • Device: http://192.168.1.10:8081 — your server's LAN IP.

The Example app writes it to the SDK's API and verified hosts on launch; leave it blank to use the SDK defaults. 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: NSAllowsArbitraryLoads disables 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-scoped NSExceptionDomains entry only if a specific host truly requires it.

Examples

See a Swift example app in Example/.

To run the example app, clone this repository, add your publishable API key in AppDelegate.swift, and build the app.

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

SPM

If you are using Swift Package Manager to manage your project's dependency, use this SPM specific repository instead

Contributing

Interested in contributing? See CONTRIBUTING.md for how to build, test, and submit changes.

Support

Have questions? We're here to help! Email us at support@radar.com.

About

iOS SDK for Radar, the leading geofencing and location tracking platform

Topics

Resources

Contributing

Stars

79 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages