SlideShare ist ein Scribd-Unternehmen logo
1 von 12
Building context aware
apps with iBeacons and
Eddystone
Jim Bennett
@JimBobBennett
http://JimBobBennett.io
Overview
• A quick overview of beacon technology
• What are context aware apps?
• What is iBeacon?
• What is Eddystone?
• Demos
What are beacons
• Bluetooth LE devices
• Broadcast a signal at a defined interval with a
defined data packet
• They don’t rely on a client connection, just a
regular, public broadcast
• Low power - some run off USB, some run of
batteries with lifetimes in months to years
What are context aware
apps?• Context aware apps are aware of some kind of
contextual information provided by the devices
location relative to the beacons
• Better than GPS as this can work indoor as well as
out
• Context is based off the location of a beacon, and this
is not necessarily a fixed point
• Context is defined by an multi part id
• Beacons broadcast a signal strength indicator so the
device can get an approximate distance based off
the received signal strength
What apps can you build
to take advantage of
this?• Museum guide - app knows which exhibit you are
standing next to and plays the correct audio
• Stadium location - app can pinpoint your location
and direct you to your seat, and let you know when
a beer seller is close by
• Shopping - notifications of special offers when you
are next to the items on offer
• Respond to indoor location - turn your lights off
when you put your phone down on your bedside
table, notify friends when you are home safe
Problems!
• Security - anyone can read your beacon by
scanning for Bluetooth devices and spoof your
id
• Power - some beacons run off the mains so
need socket, battery powered ones will die
and need replacing
• Accuracy - not very, for example in a busy
location people can decrease signal strength
What are iBeacons?
• Apple’s beacon specification
• Message has an Id, version
(major, minor), measured
power
• Multiple iBeacons can have
the same Id, versions can be
used to distinguish different
iBeacons
How do they interact with
your iOS app?• Apple defines an API to interact
with iBeacons as part of
CoreLocation
• Apps can register to monitor a
region - all beacons with a given
Id
• Monitoring notifies when an
iBeacon moves in or out of
range
• Monitoring can happen in the
background even if your app is
terminated and will launch your
app
• Once your app is in the
foreground, you can range the
iBeacons to get their
proximity/distance as it changes
What is Eddystone?
• Google’s beacon specification - recently
announced and open source
• Broadcasts one of two possible message
formats
• Eddystone UID broadcasts a UID and a
version
• Eddystone URL broadcasts a URL (limited
length)
• Eddystone TLM goes alongside one of the
other 2 formats and provides telemetry
• Beacon broadcasts can wake your Android
app up
Which one is better?
• Eddystone URL allows discovery - can be detected
by Chrome instead of a custom app
• Downside is spamming with too many URLs
• Apple provides OS level interaction with iBeacons so
can wake your iOS app up - iBeacons can work on
Android with manufacturers SDKs but can’t wake
your app up
• Eddystone can interact with the latest Google Play
services and wake your Android app up, but not an
iOS app
• In the future beacons could broadcast multiple
packets to wake apps up on both platforms
Using beacons with
Xamarin
• iBeacons on iOS is available in CoreLocation
• Eddystone on Android is available in Google
Play Services 7.8
• Google is releasing a Nearby API for iOS and
Android that supports Eddystone on both
platforms - no Xamarin binding yet
• Estimote (a beacon vendor) has a Xamarin
component for iOS and Android that supports
iBeacon, needs to be updated to support
Eddystone
Demo time!

Weitere ähnliche Inhalte

Was ist angesagt?

Beacons
Beacons Beacons
Beacons
Rahul Dhabhai
 

Was ist angesagt? (20)

10 industries that will be disrupted by iBeacons in 2015
10 industries that will be disrupted by iBeacons in 201510 industries that will be disrupted by iBeacons in 2015
10 industries that will be disrupted by iBeacons in 2015
 
iBeacon introduction and overview
iBeacon introduction and overviewiBeacon introduction and overview
iBeacon introduction and overview
 
Building Mobile Proximity Apps with iBeacon
Building Mobile Proximity Apps with iBeaconBuilding Mobile Proximity Apps with iBeacon
Building Mobile Proximity Apps with iBeacon
 
Introduction to beacon
Introduction to beaconIntroduction to beacon
Introduction to beacon
 
Beacon
BeaconBeacon
Beacon
 
Beacons Explained Slideshare
Beacons Explained SlideshareBeacons Explained Slideshare
Beacons Explained Slideshare
 
Crafting and Launching Successful Beacon Apps - 11 Keys to Success
Crafting and Launching Successful Beacon Apps - 11 Keys to SuccessCrafting and Launching Successful Beacon Apps - 11 Keys to Success
Crafting and Launching Successful Beacon Apps - 11 Keys to Success
 
iBeacons for Everyone, From iOS to Android
iBeacons for Everyone, From iOS to AndroidiBeacons for Everyone, From iOS to Android
iBeacons for Everyone, From iOS to Android
 
Beacons
Beacons Beacons
Beacons
 
How to choose the right beacons for your business
How to choose the right beacons for your businessHow to choose the right beacons for your business
How to choose the right beacons for your business
 
iBeacon, BLE and The Future of Engagement: Dsrupted Conference
iBeacon, BLE and The Future of Engagement: Dsrupted ConferenceiBeacon, BLE and The Future of Engagement: Dsrupted Conference
iBeacon, BLE and The Future of Engagement: Dsrupted Conference
 
What is iBeacon in iOS?
What is iBeacon in iOS?What is iBeacon in iOS?
What is iBeacon in iOS?
 
iBeacons for Everyone, from iOS to Android - James Montemagno | FalafelCON 2014
iBeacons for Everyone, from iOS to Android - James Montemagno | FalafelCON 2014iBeacons for Everyone, from iOS to Android - James Montemagno | FalafelCON 2014
iBeacons for Everyone, from iOS to Android - James Montemagno | FalafelCON 2014
 
Trending the Future: Apple iBeacon
Trending the Future: Apple iBeaconTrending the Future: Apple iBeacon
Trending the Future: Apple iBeacon
 
ibeacons
ibeaconsibeacons
ibeacons
 
How to deploy and manage a fleet of beacons
How to deploy and manage a fleet of beaconsHow to deploy and manage a fleet of beacons
How to deploy and manage a fleet of beacons
 
Introduction to Beacon technology
Introduction to Beacon technology Introduction to Beacon technology
Introduction to Beacon technology
 
Introduction on iBeacons
Introduction on iBeaconsIntroduction on iBeacons
Introduction on iBeacons
 
Will Eddystone take on iBeacon in 2016?
Will Eddystone take on iBeacon in 2016?Will Eddystone take on iBeacon in 2016?
Will Eddystone take on iBeacon in 2016?
 
How does iBeacon Work?
How does iBeacon Work?How does iBeacon Work?
How does iBeacon Work?
 

Ähnlich wie IBeacons and Eddystone

Ähnlich wie IBeacons and Eddystone (20)

Foo Café 20160407 - Beacons and PhoneGap in practice
Foo Café 20160407 - Beacons and PhoneGap in practiceFoo Café 20160407 - Beacons and PhoneGap in practice
Foo Café 20160407 - Beacons and PhoneGap in practice
 
Trifork iBeacon Demo Lunch Talk
Trifork iBeacon Demo Lunch TalkTrifork iBeacon Demo Lunch Talk
Trifork iBeacon Demo Lunch Talk
 
Estimote beacons and simple Android application (full)
Estimote beacons and simple Android application (full)Estimote beacons and simple Android application (full)
Estimote beacons and simple Android application (full)
 
Ibeacon
IbeaconIbeacon
Ibeacon
 
An overview of Beacons
An overview of BeaconsAn overview of Beacons
An overview of Beacons
 
A crash course in iBeacon technology
A crash course in iBeacon technologyA crash course in iBeacon technology
A crash course in iBeacon technology
 
[CocoaHeads Tricity] Estimote Beacons - world most popular iBeacon implementa...
[CocoaHeads Tricity] Estimote Beacons - world most popular iBeacon implementa...[CocoaHeads Tricity] Estimote Beacons - world most popular iBeacon implementa...
[CocoaHeads Tricity] Estimote Beacons - world most popular iBeacon implementa...
 
Location Based Development Using Xamarin
Location Based Development Using XamarinLocation Based Development Using Xamarin
Location Based Development Using Xamarin
 
Eddystone vs i beacon
Eddystone vs i beaconEddystone vs i beacon
Eddystone vs i beacon
 
Development of a mobile app for Android
Development of a mobile app for AndroidDevelopment of a mobile app for Android
Development of a mobile app for Android
 
ibeacons, Privacy & Customer Segmentation - StreetHawk
ibeacons, Privacy & Customer Segmentation - StreetHawkibeacons, Privacy & Customer Segmentation - StreetHawk
ibeacons, Privacy & Customer Segmentation - StreetHawk
 
Telerik AppBuilder, Estimote Beacons, and the IoT - Presentation for TelerikNEXT
Telerik AppBuilder, Estimote Beacons, and the IoT - Presentation for TelerikNEXTTelerik AppBuilder, Estimote Beacons, and the IoT - Presentation for TelerikNEXT
Telerik AppBuilder, Estimote Beacons, and the IoT - Presentation for TelerikNEXT
 
Why Streethawk re-wrote ibeacon handling on Android
Why Streethawk re-wrote ibeacon handling on AndroidWhy Streethawk re-wrote ibeacon handling on Android
Why Streethawk re-wrote ibeacon handling on Android
 
How to overcome operational challenges in getting consistent beacon behavior
How to overcome operational challenges in getting consistent beacon behaviorHow to overcome operational challenges in getting consistent beacon behavior
How to overcome operational challenges in getting consistent beacon behavior
 
Getting started-with-i beacon
Getting started-with-i beaconGetting started-with-i beacon
Getting started-with-i beacon
 
Using Beacons in a Mobile App - IoT Nearables
Using Beacons in a Mobile App - IoT NearablesUsing Beacons in a Mobile App - IoT Nearables
Using Beacons in a Mobile App - IoT Nearables
 
Physical web inside and out final
Physical web inside and out finalPhysical web inside and out final
Physical web inside and out final
 
GDG Eddystone overview Aug2016
GDG Eddystone overview Aug2016GDG Eddystone overview Aug2016
GDG Eddystone overview Aug2016
 
Article
ArticleArticle
Article
 
14 569
14 569 14 569
14 569
 

Mehr von Jim Bennett

Mehr von Jim Bennett (9)

Intro to the Cloud from TeenHacks LI
Intro to the Cloud from TeenHacks LIIntro to the Cloud from TeenHacks LI
Intro to the Cloud from TeenHacks LI
 
WooHoo my app is on the store! Now what?
WooHoo my app is on the store! Now what?WooHoo my app is on the store! Now what?
WooHoo my app is on the store! Now what?
 
Building Fabulous mobile apps with F#
Building Fabulous mobile apps with F#Building Fabulous mobile apps with F#
Building Fabulous mobile apps with F#
 
Adding platform specific magic to cross-platform Xamarin Forms apps
Adding platform specific magic to cross-platform Xamarin Forms appsAdding platform specific magic to cross-platform Xamarin Forms apps
Adding platform specific magic to cross-platform Xamarin Forms apps
 
Learning to love f#
Learning to love f#Learning to love f#
Learning to love f#
 
App center - the gateway drug to mobile devops
App center -  the gateway drug to mobile devopsApp center -  the gateway drug to mobile devops
App center - the gateway drug to mobile devops
 
Adding platform specific magic to cross-platform Xamarin Forms apps
Adding platform specific magic to cross-platform Xamarin Forms appsAdding platform specific magic to cross-platform Xamarin Forms apps
Adding platform specific magic to cross-platform Xamarin Forms apps
 
Cross platform Xamarin Apps With MVVM
Cross platform Xamarin Apps With MVVMCross platform Xamarin Apps With MVVM
Cross platform Xamarin Apps With MVVM
 
Clicking on the real world with iBeacon and eddystone
Clicking on the real world with iBeacon and eddystoneClicking on the real world with iBeacon and eddystone
Clicking on the real world with iBeacon and eddystone
 

Kürzlich hochgeladen

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Kürzlich hochgeladen (20)

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 

IBeacons and Eddystone

  • 1. Building context aware apps with iBeacons and Eddystone Jim Bennett @JimBobBennett http://JimBobBennett.io
  • 2. Overview • A quick overview of beacon technology • What are context aware apps? • What is iBeacon? • What is Eddystone? • Demos
  • 3. What are beacons • Bluetooth LE devices • Broadcast a signal at a defined interval with a defined data packet • They don’t rely on a client connection, just a regular, public broadcast • Low power - some run off USB, some run of batteries with lifetimes in months to years
  • 4. What are context aware apps?• Context aware apps are aware of some kind of contextual information provided by the devices location relative to the beacons • Better than GPS as this can work indoor as well as out • Context is based off the location of a beacon, and this is not necessarily a fixed point • Context is defined by an multi part id • Beacons broadcast a signal strength indicator so the device can get an approximate distance based off the received signal strength
  • 5. What apps can you build to take advantage of this?• Museum guide - app knows which exhibit you are standing next to and plays the correct audio • Stadium location - app can pinpoint your location and direct you to your seat, and let you know when a beer seller is close by • Shopping - notifications of special offers when you are next to the items on offer • Respond to indoor location - turn your lights off when you put your phone down on your bedside table, notify friends when you are home safe
  • 6. Problems! • Security - anyone can read your beacon by scanning for Bluetooth devices and spoof your id • Power - some beacons run off the mains so need socket, battery powered ones will die and need replacing • Accuracy - not very, for example in a busy location people can decrease signal strength
  • 7. What are iBeacons? • Apple’s beacon specification • Message has an Id, version (major, minor), measured power • Multiple iBeacons can have the same Id, versions can be used to distinguish different iBeacons
  • 8. How do they interact with your iOS app?• Apple defines an API to interact with iBeacons as part of CoreLocation • Apps can register to monitor a region - all beacons with a given Id • Monitoring notifies when an iBeacon moves in or out of range • Monitoring can happen in the background even if your app is terminated and will launch your app • Once your app is in the foreground, you can range the iBeacons to get their proximity/distance as it changes
  • 9. What is Eddystone? • Google’s beacon specification - recently announced and open source • Broadcasts one of two possible message formats • Eddystone UID broadcasts a UID and a version • Eddystone URL broadcasts a URL (limited length) • Eddystone TLM goes alongside one of the other 2 formats and provides telemetry • Beacon broadcasts can wake your Android app up
  • 10. Which one is better? • Eddystone URL allows discovery - can be detected by Chrome instead of a custom app • Downside is spamming with too many URLs • Apple provides OS level interaction with iBeacons so can wake your iOS app up - iBeacons can work on Android with manufacturers SDKs but can’t wake your app up • Eddystone can interact with the latest Google Play services and wake your Android app up, but not an iOS app • In the future beacons could broadcast multiple packets to wake apps up on both platforms
  • 11. Using beacons with Xamarin • iBeacons on iOS is available in CoreLocation • Eddystone on Android is available in Google Play Services 7.8 • Google is releasing a Nearby API for iOS and Android that supports Eddystone on both platforms - no Xamarin binding yet • Estimote (a beacon vendor) has a Xamarin component for iOS and Android that supports iBeacon, needs to be updated to support Eddystone

Hinweis der Redaktion

  1. Install Chrome on iOS, Google Physical Web on Android
  2. Just like a lighthouse or other signaling beacon - hence the name. Interval is hardware configured Packet is defined by standards - iBeacon and Eddystone are both standards Very low power - coin cell battery can last for years depending on signal strength and interval Signal can be pretty strong - up to 100m is normal, some do 500m
  3. GPS can provide some context, rough location, speed etc. Beacons can provide more including fine grained location inside, proximity to well know points that are not fixed in location etc. E.g. painting or exhibits in a museum, vendors at events. By monitoring the distance to a beacon an app can act accordingly
  4. Security can be a problem for payments - another beacon can broadcast the same id and the wrong person pays. Some vendors have a secure ID system that needs an internet connection to decrypt Battery is an issue with large installations - imaging having to replace them regularly in an art gallery where they would be hidden behind pictures. Not accurate with people in the way - a problem in busy areas like shops, museums and art galleries. Brooklyn Museum has a great article on this.
  5. Apple recommends 100ms broadcast interval but doesn’t enforce it The Id is a 128bit UUID, version is 2 16-bit integers for major and minor Multiple beacons with the same Id can be used to indicate the same thing to allow discovery over a wider area than the broadcast power of a single iBeacon Can only register up to 20 regions made up of id, or id/major or id/major/minor. Normal usage would be things like id for a department in a store, major for an aisle and minor for an area in the aisle
  6. Monitoring detects iBeacons moving into an our of fixed ranges. Once your app is in the foreground you can range the iBeacons to get notifications of distance changes. The iBeacon message contains the measured power. The API provides a value for the RSSI - relative signal strength indicator. This is the power detected by the iOS device and can be used to calculate the approximate distance. Distance is only approximate and is based on assuming empty air - things in the way can reduce the detected signal - furniture, people etc. Ranging will call a method regularly when your app is in the foreground to provide the updated distance.
  7. Eddystone UUID (referred to as a namespace) broadcasts a 10 byte ID and 6 byte instance ID - usage is multiple beacons can share the namespace for one area and with different instances to define different beacons for more accurate context. Eddystone URL broadcasts a URL but is limited to 17 bytes with some abbreviations allowing longer (e.g. one bye can replace .com/) Eddystone TLM sends things like battery life remaining, up time etc.
  8. URL allows discovery - can drive people to your app. URL appears in chrome, but nothing to stop you being spammed, especially in a potentially busy place like a shopping centre. Eddystone needs latest google play services - only been out for a week No one standard can work in the background on both devices
  9. Eddystone URL - Blueberry for URL Green for dodgy URL iBeacon - white for monitoring - show Xamarin code