Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning ibeacon

You're reading from  Learning ibeacon

Product type Book
Published in Nov 2014
Publisher
ISBN-13 9781784397128
Pages 196 pages
Edition 1st Edition
Languages
Author (1):
Craig Gilchrist Craig Gilchrist
Profile icon Craig Gilchrist

Table of Contents (16) Chapters

Learning iBeacon
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Welcome to iBeacon Detecting Beacons – Showing an Advert Broadcasting Advertisements – Sending Offers Ranging Beacons – Hunting for Treasure Detecting Beacons in the Background – Location Dating Leaving Regions – Don't Forget Your Stuff Vendor SDKs – Buying and Configuring Beacons Advanced Tutorial – iBeacon Museum iBeacon Security – Understanding the Risks Index

Building our app


Let's get started with building our "important stuff" app. We'll be using core data to store a list of our important stuff, and luckily, Apple has provided a very nice template, which should give us a head start. Consider the following steps:

  1. Fire up Xcode and create a new project. This time, choose Master-Detail Application as your project template and call the project My Important Stuff. Be absolutely sure to check the Use Core Data option as this tutorial heavily relies on it.

  2. We're going to need CoreLocation; so, add that to the linked frameworks and libraries as we've done in previous chapters.

Beginning the app with a database schema

Let's start with the database required to support the app. We'll need to store all of our beacons within the local database so that our location manager knows what's missing. We'll also need to remove any of the default entities that the template has created so that we don't cloud up our nice clean code. Consider the following steps:

  1. Open up...

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 $15.99/month. Cancel anytime}