Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning ibeacon

You're reading from   Learning ibeacon

Arrow left icon
Product type Paperback
Published in Nov 2014
Publisher
ISBN-13 9781784397128
Length 196 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Craig Gilchrist Craig Gilchrist
Author Profile Icon Craig Gilchrist
Craig Gilchrist
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Welcome to iBeacon FREE CHAPTER 2. Detecting Beacons – Showing an Advert 3. Broadcasting Advertisements – Sending Offers 4. Ranging Beacons – Hunting for Treasure 5. Detecting Beacons in the Background – Location Dating 6. Leaving Regions – Don't Forget Your Stuff 7. Vendor SDKs – Buying and Configuring Beacons 8. Advanced Tutorial – iBeacon Museum 9. iBeacon Security – Understanding the Risks Index

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 all beacons share the same UUID, we can't rely on the locationManager:didExitRegion delegate method because if we've got two out of the three important things with us, then we'll still be in the region and so we might leave something behind and not...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image