Join Michael Lehman for an in-depth discussion in this video Connecting to an iBeacon, part of Programming the Internet of Things with iOS.
- You connect to iBeacons using Core Location.…Core Location Services must be turned on…on the iOS device.…And it's crucial to have a Location Services…Usage Description field in your info.plist.…Otherwise, it won't prompt you to ask…whether or not the user can have permission…to access this, and you'll never ever ever…get any notifications from Core Location…about your iBeacon.…It's important to have an NSLocationAlwaysUsageDescription…or an NSLocationWhenInUseUsageDescription key…in your info.plist.…
They're string values, and they indicate…why you're trying to get access…to the Core Location for the iBeacon.…What's important here is that location always…means that you're app works both when your app is front and…center on the screen and when it's in the background.…If you want it to work only when your app is…front and center on the screen,…then use NSLocationWhenInUse and as part of your code…you have to tell it which kind of permission you're asking…and then it uses the string appropriate…to the kind of permission you've asked for.…
- Exploring the IoT universe
- Understanding sensors and effectors
- Connecting inputs and outputs
- Connecting to devices via Wi-Fi or Bluetooth
- Using Apple iBeacon
- Creating your own things with programmable hardware
- Using IFTTT to program things
- Exploring trends in IoT
Skill Level Intermediate
1. The Internet of Things (IoT)
2. Exploring Things
3. Connecting to Things
4. Using Apple iBeacon
5. Creating Things
6. Managing Your Things
7. The Future of IoT
Next steps3m 4s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.