Our tutorial

We're going to demonstrate this sticker-type functionality by building an app that lets you add beacon profiles to a local database, and when the beacon is more than two meters away, the app shows a push notification.

Our companion app already includes three beacon profiles for the important things we might forget, which are listed in the following table:

UUID

Major

Minor

C5FAC3DE-33D5-469C-B094-AD527AF3ECCD

1

1

My wallet

2

My keys

3

My dog

The idea behind our app is that we never leave anything important behind. This means that we need to send a notification if the app isn't active and a beacon moves out of range or present an alert if the app is running at the time we lose the beacon.

Ranging beacons in the background

Since ...

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.