Learning iBeacon

Build proximity applications for iOS using Apple's groundbreaking iBeacon technology

Learning iBeacon

Craig Gilchrist

Build proximity applications for iOS using Apple's groundbreaking iBeacon technology
Mapt Subscription
FREE
$29.99/m after trial
eBook
$12.60
RRP $17.99
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$12.60
$29.99
$29.99p/m after trial
RRP $17.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781784397128
Paperback196 pages

Book Description

Starting with an introduction to iBeacon, you will learn all about simple beacon detection. You will learn how to use Apple's CoreBluetooth, CoreLocation, and PassKit libraries, and how to broadcast different values through the power of transmission power.

You will learn how to allow your apps to detect beacons, determine their distance, and even turn your iPhone or iPad into a Bluetooth iBeacon by building a simple treasure-hunting app. We will also be discussing two of the most popular beacons (Estimote and ROXIMITY). Don't worry if you haven't got any beacons; this book includes a companion app that lets your Mac or MacBook act as a beacon to allow you to jump straight into learning this incredible technology.

By the end of this book, you will have learned how to build apps that interact with the world around them using Bluetooth beacons.

Table of Contents

Chapter 1: Welcome to iBeacon
Introducing iBeacon
Hey, 'sup
Understanding a range using RSSI
Compatible devices
Commercial applications of iBeacon
So many vendors, so little time
The companion OS X application and website
Hello world
Testing our code
Summary
Chapter 2: Detecting Beacons – Showing an Advert
Uses of the UUID/major/minor broadcasting triplet
Understanding Core Location
Creating a CLLocationManager class
Understanding iBeacon permissions
Building the tutorial app
Summary
Chapter 3: Broadcasting Advertisements – Sending Offers
Introducing the Core Bluetooth framework
Obtaining broadcast values from CLBeaconRegion
Summary
Chapter 4: Ranging Beacons – Hunting for Treasure
There be treasure nearby
Understanding distance
Our application
Getting started with building our app
Completing the code
Summary
Chapter 5: Detecting Beacons in the Background – Location Dating
Real-life use cases
Handing over responsibility
The CLBeaconRegion options
Passbook integration
Our tutorial app
Testing your application
Summary
Chapter 6: Leaving Regions – Don't Forget Your Stuff
Raspberry Pi
Ninja Blocks
Nest
Phillips Hue
Belkin WeMo
iBeacon and home automation
Beacon stickers
Our tutorial
Building our app
Testing your app
Summary
Chapter 7: Vendor SDKs – Buying and Configuring Beacons
Estimote motes and SDK
ROXIMITY implementation
Choosing the best platform for your requirements
AltBeacon – the open beacon specification
Using Estimote API 2.1
Let's get building
Testing your application
Summary
Chapter 8: Advanced Tutorial – iBeacon Museum
Our exhibitions
The museum map
Our app structure
The supporting website
Our app design
Building the application
Time to test
Summary
Chapter 9: iBeacon Security – Understanding the Risks
Beacon spoofing
Beacon hacking
Dispelling security myths
Overcoming users' fears with good UX
Summary

What You Will Learn

  • Detect beacons in range and read the values they broadcast
  • Understand beacon regions and use Core Location framework to determine when you enter or exit a beacon region
  • Use beacon broadcast values to identify the beacon and determine the purpose of it
  • Utilize the CoreBluetooth library to turn your iOS device into an iBeacon
  • Build a functionality that understands the world around it within a few inches by determining beacon distance
  • Notify users that they've entered a region while the app's running in the background and use beacons to show Apple Passbook passes when in range
  • Build a comprehensive museum app that informs the visitor about the exhibits that they're closest to as they walk around the museum
  • Understand Bluetooth low energy and the technology behind iBeacon

Authors

Table of Contents

Chapter 1: Welcome to iBeacon
Introducing iBeacon
Hey, 'sup
Understanding a range using RSSI
Compatible devices
Commercial applications of iBeacon
So many vendors, so little time
The companion OS X application and website
Hello world
Testing our code
Summary
Chapter 2: Detecting Beacons – Showing an Advert
Uses of the UUID/major/minor broadcasting triplet
Understanding Core Location
Creating a CLLocationManager class
Understanding iBeacon permissions
Building the tutorial app
Summary
Chapter 3: Broadcasting Advertisements – Sending Offers
Introducing the Core Bluetooth framework
Obtaining broadcast values from CLBeaconRegion
Summary
Chapter 4: Ranging Beacons – Hunting for Treasure
There be treasure nearby
Understanding distance
Our application
Getting started with building our app
Completing the code
Summary
Chapter 5: Detecting Beacons in the Background – Location Dating
Real-life use cases
Handing over responsibility
The CLBeaconRegion options
Passbook integration
Our tutorial app
Testing your application
Summary
Chapter 6: Leaving Regions – Don't Forget Your Stuff
Raspberry Pi
Ninja Blocks
Nest
Phillips Hue
Belkin WeMo
iBeacon and home automation
Beacon stickers
Our tutorial
Building our app
Testing your app
Summary
Chapter 7: Vendor SDKs – Buying and Configuring Beacons
Estimote motes and SDK
ROXIMITY implementation
Choosing the best platform for your requirements
AltBeacon – the open beacon specification
Using Estimote API 2.1
Let's get building
Testing your application
Summary
Chapter 8: Advanced Tutorial – iBeacon Museum
Our exhibitions
The museum map
Our app structure
The supporting website
Our app design
Building the application
Time to test
Summary
Chapter 9: iBeacon Security – Understanding the Risks
Beacon spoofing
Beacon hacking
Dispelling security myths
Overcoming users' fears with good UX
Summary

Book Details

ISBN 139781784397128
Paperback196 pages
Read More

Read More Reviews