Completing the code

Debug and test your app on two devices. Start the app on one device and start running it as the treasure. Try to get at least 50 meters away before starting hunter mode on the second device.

Slowly move towards your treasure and see the map and messages change before you get less than an arm's length away. Once you do this, your hunter should show an alert view and then close when dismissed.

Get Learning iBeacon now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.