SlideShare a Scribd company logo
1 of 52
Getting up close and personal with
IoT Nearables
Jen Looper
Jen Looper
Developer Advocate, Telerik
http://www.ladeezfirstmedia.com
@jenlooper
What’s a beacon?
More like this
Except much more precise: indoor location FTW
Use several beacons to triangulate your location in a room
Beacons might feature:
• A bit of memory
• Accelerometer
• Temperature sensor
• Bluetooth (Smart, or BLE)
• Long-lived battery
• Gecko-style sticky backing
Bluetooth signal
• Beacons broadcast using bluetooth
• Find them between two inches and 230 feet distance
• Invisible underwater
Your phone picks up a signal (“advertising packet”) and your app
processes it
• Estimates distance
• Places phone in a context
• Measures signal strength
• Can ping 10x/second
Beacons have a unique Id
Associate this id with a product or a
call to action
And moar!
• Micro-location
• Geofence users
• Detect context changes
• Proximity marketing
• Turn-by-turn navigation
Not just for selling stuff
Kontakt.io use cases include:
• Public beacons for use by the blind
• Beacons for music festivals (Bonnaroo) to ‘heat map’ areas of
the festival and create ‘retrospective itinerary’ as a festival
souvenir for the users
• Restaurant interactions – check in, get free appetizers, etc
• Allow businesses to pay for patron parking fees in a movable
parking meter system
• ‘beaconizing’ SFO airport by offering voice-routing to visually-
empaired passengers
• Beacons in Africa – track and manage outbreaks
• Culture and tourism***
Museums!! Check out the Metropolitan
Museum’s ‘Beacon Walk’
http://bit.ly/met-museum-beacon
Uses Estimotes
with Beacondo
service
What about iBeacon?
iBeacon is a protocol created by Apple, for iOS 7 and 8 devices
Many hardware beacons leverage iBeacon technology
What types of hardware beacons are available now?
• DIY – Bluetooth dongle can be turned into a beacon
• Facebook Bluetooth Beacons
• Estimote beacons
• Kontakt.io beacons
Periculum!
Beacons can be hacked


Hacking the CES scavenger hunt
http://bit.ly/ces-hack
Estimotes have beefed up security
Manage your beacons’ UUIDs
A look at Estimote’s offering
Beacons and Stickers, $99 per pack, SDK + Cloud
The unboxing
Let’s build something!
A Civic Project - BookBeacon
Requirements:
• Create a mobile app for a public library
• Library will hide a beacon in the stacks, near a book with an ISBN
code
• Mobile app will help users find the beacon and, when found, open
barcode scanner to scan ISBN
• ISBN is used with an API to get more info about the book
Full tutorial:
http://bit.ly/beacons-appbuilder
Github repo:
https://github.com/jlooper/estimote-kendo
Create a mobile app – Telerik AppBuilder + Kendo UI Mobile
Create a hybrid mobile app project in Telerik Platform (http://platform.telerik.com)
Two views – manage beacons, scan books
/views/beacons.html
/views/scan.html
Two buttons in beacons.html: start and stop scanning for beacons
<div data-role="view" data-title="Find Featured Books" data-layout="main" data-
model="app.beaconService.viewModel">
<div class="rounded">
<div id="beaconlog">
Looking for beacons...
</div>
<div class="buttons">
<button data-role="button" class="button start" data-bind="click: start">Start
Searching</button>
<button data-role="button" class="button stop" data-bind="click: stop">Stop
Searching</button>
</div>
</div>
</div>
One button and one link in scan.html
<div data-role="view" data-title="Scan an ISBN bar code" data-layout="main" data-
model="app.beaconService.viewModel">
<div class="rounded">
You found a beacon! Now scan the ISBN bar code on the back cover to learn
more about the featured book.
<div class="buttons">
<button class="button scan">Scan a Bar Code</button>
</div>
<div id="bookinfo”></div>
</div>
</div>
Wire up the beacon scanning procedure
function onBeaconsReceived(result) {
if (result.beacons && result.beacons.length > 0) {
var msg = "<b>I found " + result.beacons.length + " beacons! Find
them and scan the ISBN codes of the books to which they are
attached to learn more about them.</b><br/>";
for (var i=0; i<result.beacons.length; i++) {
var beacon = result.beacons[i];
if(beacon.distance > 0){
msg += "<br/>";
if (beacon.color !== undefined) {
msg += "There is a <b>" + beacon.color + "</b> beacon ";
}
…
Plug in the plugins!
Use two plugins from http://plugins.telerik.com - curated Cordova plugins marketplace:
Estimote and BarcodeScanner
Integrating Barcode Scan plugin
scan: function () {
cordova.plugins.barcodeScanner.scan(
function (result) {
setTimeout(function() {
var url = 'http://www.lookupbyisbn.com/Search/Book/' + result.text
+ '/1';
var bookinfo = "<a href='#' onclick=window.open('" + url +
"','_blank')>Learn more about this book</a>";
document.getElementById('bookinfo').innerHTML = bookinfo;
}, 0);
},
function (error) {
alert("Scanning failed: " + error);
}
)
},
Test on device
Let’s build something else: Beacon Hunt
Full tutorial:
http://bit.ly/beacon-hunt
Github repo:
https://github.com/jlooper/beacon-hunt.git
Introducing Beacon Hunt!
Estimote Beacons + Plugin + AppBuilder + Telerik Backend
Services = fun app!
Beacon Hunt Requirements:
• Allow an administrator or host to create a Beacon Hunt by creating a 6-digit PIN unique to that hunt
• Enable sending this PIN to users of the app via email
• Allow invitees to the hunt to input the PIN and subscribe to a push notification channel unique to the hunt
• On push of ‘start’ button, app starts pinging for beacons
• If beacon is found, appropriately colored button is generated, and when pressed, a push notification is sent
to the members of the hunt that this color beacon has been found (“claimed”).
Building the app – Step 1 - Setup
Using Telerik Platform makes it easy
Create an account at
platform.telerik.com and create an
app
Building the app – Step 2 – Scaffold
Scaffold a basic Kendo UI Mobile app
Create a hybrid project using a blank
JavaScript template
Building the app – (quick ‘n’ dirty)
Scaffold your app using code from github
https://github.com/jlooper/beacon-hunt.git
Building the app – Step 3 – Build ‘host’ screen
A 6 digit PIN will reserve your hunt ID.
Use Telerik Backend Services to store
it.
Add Backend
Services to your
project to store data
Build Data tier for ‘host’ screen
Add push notifications and cloud data
to your app project’s backend
configuration
Create a ‘content type’ to store
HuntPINs so they will remain unique for
use as push segments
Configure push notifications
Manage your app
provisioning (takes time to
do on iOS especially!)
Keep track of push stats in
the backend
Build the app – Step 4 – Plugins!!
Plugins.telerik.com
Integrate 3 plugins:
Install Custom plugins from the Plugin
marketplace in-browser
Build the app – Step 5 – Participant screen
Type the PIN, subscribe to a push segment,
start searching, claim a beacon, send push
Build the app – Step 5 – Participant screen
Your Hunt is geofenced according to the segment you are subscribed to, per your hunt PIN which is
stored in localStorage:
var customDeviceParameters = {
"Hunt":localStorage.getItem('registeredHunt')
};
…
currentDevice.register(customDeviceParameters)
.then(function (regData) {
model._onDeviceIsSuccessfullyRegistered();
}, function (err) {
model._onPushErrorOccurred(err.message);
});
Push to a segment
Anyone signed
into the GalHnt
segment
received this
push
The user claimed
the ‘ice’ color
beacon
The final result!
Beacons are awesome.
What will you build?
Did you download Beacon Hunt? Ready to hunt for beacons?
Let’s go! Hunt PIN: CPLNOW
Thanks!
Jen Looper
Developer Advocate, Telerik
http://www.ladeezfirstmedia.com
@jenlooper

More Related Content

Similar to Using Beacons in a Mobile App - IoT Nearables

Droid con 2015 - experimenting monitoring and proximity techniques using andr...
Droid con 2015 - experimenting monitoring and proximity techniques using andr...Droid con 2015 - experimenting monitoring and proximity techniques using andr...
Droid con 2015 - experimenting monitoring and proximity techniques using andr...Commit University
 
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 practiceAbiro AB
 
Mobile development in age of Internet of Things and programming Apple Watch
Mobile development in age of Internet of Things and programming Apple WatchMobile development in age of Internet of Things and programming Apple Watch
Mobile development in age of Internet of Things and programming Apple WatchJanusz Chudzynski
 
Xamarin iBeacon Mini-hack using Estimote iBeacons
Xamarin iBeacon Mini-hack using Estimote iBeaconsXamarin iBeacon Mini-hack using Estimote iBeacons
Xamarin iBeacon Mini-hack using Estimote iBeaconsJim Bennett
 
Four Things You Can Do Today to Get Your Library Ready for the Mobile Experi...
Four Things You Can Do Today to Get Your Library Ready for the Mobile Experi...Four Things You Can Do Today to Get Your Library Ready for the Mobile Experi...
Four Things You Can Do Today to Get Your Library Ready for the Mobile Experi...Cheryl Burnette
 
QR code workshop 2019
QR code workshop 2019QR code workshop 2019
QR code workshop 2019Paulo Reis
 
GDG Eddystone overview Aug2016
GDG Eddystone overview Aug2016GDG Eddystone overview Aug2016
GDG Eddystone overview Aug2016David Pugh
 
DevBy. Apple Watch Kit 1.0 (RU) & NFC
DevBy. Apple Watch Kit 1.0 (RU) & NFCDevBy. Apple Watch Kit 1.0 (RU) & NFC
DevBy. Apple Watch Kit 1.0 (RU) & NFCVladimir Hudnitsky
 
IBeacons and Eddystone
IBeacons and EddystoneIBeacons and Eddystone
IBeacons and EddystoneJim Bennett
 
40interestingwaystouseqrcodesinthecla 110724032613-phpapp02
40interestingwaystouseqrcodesinthecla 110724032613-phpapp0240interestingwaystouseqrcodesinthecla 110724032613-phpapp02
40interestingwaystouseqrcodesinthecla 110724032613-phpapp02Amy Slefendorfas
 
Top 10 iBeacon Questions
Top 10 iBeacon QuestionsTop 10 iBeacon Questions
Top 10 iBeacon QuestionsLocly
 
Physical web inside and out final
Physical web inside and out finalPhysical web inside and out final
Physical web inside and out finalstartupIoT
 
XebiCon'16 : The Physical Web : un coup d'oeil sur le futur d'IoT et de la mo...
XebiCon'16 : The Physical Web : un coup d'oeil sur le futur d'IoT et de la mo...XebiCon'16 : The Physical Web : un coup d'oeil sur le futur d'IoT et de la mo...
XebiCon'16 : The Physical Web : un coup d'oeil sur le futur d'IoT et de la mo...Publicis Sapient Engineering
 
Geeks bearing gifts september2012
Geeks bearing gifts september2012Geeks bearing gifts september2012
Geeks bearing gifts september2012ayoungkin
 
ibeacons, Privacy & Customer Segmentation - StreetHawk
ibeacons, Privacy & Customer Segmentation - StreetHawkibeacons, Privacy & Customer Segmentation - StreetHawk
ibeacons, Privacy & Customer Segmentation - StreetHawkDavid Jones
 
Successfully Using QR Codes in Libraries
Successfully Using QR Codes in LibrariesSuccessfully Using QR Codes in Libraries
Successfully Using QR Codes in LibrariesCheryl Burnette
 

Similar to Using Beacons in a Mobile App - IoT Nearables (20)

Droid con 2015 - experimenting monitoring and proximity techniques using andr...
Droid con 2015 - experimenting monitoring and proximity techniques using andr...Droid con 2015 - experimenting monitoring and proximity techniques using andr...
Droid con 2015 - experimenting monitoring and proximity techniques using andr...
 
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
 
JAM805 - Beyond the Device
JAM805 -  Beyond the DeviceJAM805 -  Beyond the Device
JAM805 - Beyond the Device
 
Mobile development in age of Internet of Things and programming Apple Watch
Mobile development in age of Internet of Things and programming Apple WatchMobile development in age of Internet of Things and programming Apple Watch
Mobile development in age of Internet of Things and programming Apple Watch
 
Xamarin iBeacon Mini-hack using Estimote iBeacons
Xamarin iBeacon Mini-hack using Estimote iBeaconsXamarin iBeacon Mini-hack using Estimote iBeacons
Xamarin iBeacon Mini-hack using Estimote iBeacons
 
Four Things You Can Do Today to Get Your Library Ready for the Mobile Experi...
Four Things You Can Do Today to Get Your Library Ready for the Mobile Experi...Four Things You Can Do Today to Get Your Library Ready for the Mobile Experi...
Four Things You Can Do Today to Get Your Library Ready for the Mobile Experi...
 
QR code workshop 2019
QR code workshop 2019QR code workshop 2019
QR code workshop 2019
 
iBeacon introduction and overview
iBeacon introduction and overviewiBeacon introduction and overview
iBeacon introduction and overview
 
GDG Eddystone overview Aug2016
GDG Eddystone overview Aug2016GDG Eddystone overview Aug2016
GDG Eddystone overview Aug2016
 
DevBy. Apple Watch Kit 1.0 (RU) & NFC
DevBy. Apple Watch Kit 1.0 (RU) & NFCDevBy. Apple Watch Kit 1.0 (RU) & NFC
DevBy. Apple Watch Kit 1.0 (RU) & NFC
 
Ibeacons bible
Ibeacons bibleIbeacons bible
Ibeacons bible
 
IBeacons and Eddystone
IBeacons and EddystoneIBeacons and Eddystone
IBeacons and Eddystone
 
How... Do you know?
How... Do you know?How... Do you know?
How... Do you know?
 
40interestingwaystouseqrcodesinthecla 110724032613-phpapp02
40interestingwaystouseqrcodesinthecla 110724032613-phpapp0240interestingwaystouseqrcodesinthecla 110724032613-phpapp02
40interestingwaystouseqrcodesinthecla 110724032613-phpapp02
 
Top 10 iBeacon Questions
Top 10 iBeacon QuestionsTop 10 iBeacon Questions
Top 10 iBeacon Questions
 
Physical web inside and out final
Physical web inside and out finalPhysical web inside and out final
Physical web inside and out final
 
XebiCon'16 : The Physical Web : un coup d'oeil sur le futur d'IoT et de la mo...
XebiCon'16 : The Physical Web : un coup d'oeil sur le futur d'IoT et de la mo...XebiCon'16 : The Physical Web : un coup d'oeil sur le futur d'IoT et de la mo...
XebiCon'16 : The Physical Web : un coup d'oeil sur le futur d'IoT et de la mo...
 
Geeks bearing gifts september2012
Geeks bearing gifts september2012Geeks bearing gifts september2012
Geeks bearing gifts september2012
 
ibeacons, Privacy & Customer Segmentation - StreetHawk
ibeacons, Privacy & Customer Segmentation - StreetHawkibeacons, Privacy & Customer Segmentation - StreetHawk
ibeacons, Privacy & Customer Segmentation - StreetHawk
 
Successfully Using QR Codes in Libraries
Successfully Using QR Codes in LibrariesSuccessfully Using QR Codes in Libraries
Successfully Using QR Codes in Libraries
 

More from Jen Looper

Computer Science for Kids: A Storytelling Approach
Computer Science for Kids: A Storytelling ApproachComputer Science for Kids: A Storytelling Approach
Computer Science for Kids: A Storytelling ApproachJen Looper
 
Staying Fresh and Avoiding Burnout
Staying Fresh and Avoiding BurnoutStaying Fresh and Avoiding Burnout
Staying Fresh and Avoiding BurnoutJen Looper
 
Game On With NativeScript
Game On With NativeScriptGame On With NativeScript
Game On With NativeScriptJen Looper
 
NativeScript and Angular
NativeScript and AngularNativeScript and Angular
NativeScript and AngularJen Looper
 
Sharing Code between Web and Mobile Apps
Sharing Code between Web and Mobile AppsSharing Code between Web and Mobile Apps
Sharing Code between Web and Mobile AppsJen Looper
 
Beacons, Plants, Boxes
Beacons, Plants, BoxesBeacons, Plants, Boxes
Beacons, Plants, BoxesJen Looper
 
Ignite your app development with Angular, NativeScript and Firebase
Ignite your app development with Angular, NativeScript and FirebaseIgnite your app development with Angular, NativeScript and Firebase
Ignite your app development with Angular, NativeScript and FirebaseJen Looper
 
Hackathon Slides
Hackathon SlidesHackathon Slides
Hackathon SlidesJen Looper
 
Swipe Left for NativeScript
Swipe Left for NativeScriptSwipe Left for NativeScript
Swipe Left for NativeScriptJen Looper
 
Angular 2 and NativeScript
Angular 2 and NativeScriptAngular 2 and NativeScript
Angular 2 and NativeScriptJen Looper
 
Crafting an Adventure: The Azure Maya Mystery
Crafting an Adventure: The Azure Maya MysteryCrafting an Adventure: The Azure Maya Mystery
Crafting an Adventure: The Azure Maya MysteryJen Looper
 
Re-Building a Tech Community - Post Pandemic!
Re-Building a Tech Community - Post Pandemic!Re-Building a Tech Community - Post Pandemic!
Re-Building a Tech Community - Post Pandemic!Jen Looper
 
Building a Tech Community in Ten Easy Steps
Building a Tech Community in Ten Easy StepsBuilding a Tech Community in Ten Easy Steps
Building a Tech Community in Ten Easy StepsJen Looper
 
Becoming a Green Developer
Becoming a Green DeveloperBecoming a Green Developer
Becoming a Green DeveloperJen Looper
 
Azure Static Web Apps
Azure Static Web AppsAzure Static Web Apps
Azure Static Web AppsJen Looper
 
Creating a Great Workshop
Creating a Great WorkshopCreating a Great Workshop
Creating a Great WorkshopJen Looper
 
The Ethics of Generative AI: A Humanist's Guide
The Ethics of Generative AI: A Humanist's GuideThe Ethics of Generative AI: A Humanist's Guide
The Ethics of Generative AI: A Humanist's GuideJen Looper
 
Zero to Hipster with the M.I.K.E. Stack
Zero to Hipster with the M.I.K.E. StackZero to Hipster with the M.I.K.E. Stack
Zero to Hipster with the M.I.K.E. StackJen Looper
 
Telerik AppBuilder Presentation for TelerikNEXT Conference
Telerik AppBuilder Presentation for TelerikNEXT ConferenceTelerik AppBuilder Presentation for TelerikNEXT Conference
Telerik AppBuilder Presentation for TelerikNEXT ConferenceJen Looper
 

More from Jen Looper (19)

Computer Science for Kids: A Storytelling Approach
Computer Science for Kids: A Storytelling ApproachComputer Science for Kids: A Storytelling Approach
Computer Science for Kids: A Storytelling Approach
 
Staying Fresh and Avoiding Burnout
Staying Fresh and Avoiding BurnoutStaying Fresh and Avoiding Burnout
Staying Fresh and Avoiding Burnout
 
Game On With NativeScript
Game On With NativeScriptGame On With NativeScript
Game On With NativeScript
 
NativeScript and Angular
NativeScript and AngularNativeScript and Angular
NativeScript and Angular
 
Sharing Code between Web and Mobile Apps
Sharing Code between Web and Mobile AppsSharing Code between Web and Mobile Apps
Sharing Code between Web and Mobile Apps
 
Beacons, Plants, Boxes
Beacons, Plants, BoxesBeacons, Plants, Boxes
Beacons, Plants, Boxes
 
Ignite your app development with Angular, NativeScript and Firebase
Ignite your app development with Angular, NativeScript and FirebaseIgnite your app development with Angular, NativeScript and Firebase
Ignite your app development with Angular, NativeScript and Firebase
 
Hackathon Slides
Hackathon SlidesHackathon Slides
Hackathon Slides
 
Swipe Left for NativeScript
Swipe Left for NativeScriptSwipe Left for NativeScript
Swipe Left for NativeScript
 
Angular 2 and NativeScript
Angular 2 and NativeScriptAngular 2 and NativeScript
Angular 2 and NativeScript
 
Crafting an Adventure: The Azure Maya Mystery
Crafting an Adventure: The Azure Maya MysteryCrafting an Adventure: The Azure Maya Mystery
Crafting an Adventure: The Azure Maya Mystery
 
Re-Building a Tech Community - Post Pandemic!
Re-Building a Tech Community - Post Pandemic!Re-Building a Tech Community - Post Pandemic!
Re-Building a Tech Community - Post Pandemic!
 
Building a Tech Community in Ten Easy Steps
Building a Tech Community in Ten Easy StepsBuilding a Tech Community in Ten Easy Steps
Building a Tech Community in Ten Easy Steps
 
Becoming a Green Developer
Becoming a Green DeveloperBecoming a Green Developer
Becoming a Green Developer
 
Azure Static Web Apps
Azure Static Web AppsAzure Static Web Apps
Azure Static Web Apps
 
Creating a Great Workshop
Creating a Great WorkshopCreating a Great Workshop
Creating a Great Workshop
 
The Ethics of Generative AI: A Humanist's Guide
The Ethics of Generative AI: A Humanist's GuideThe Ethics of Generative AI: A Humanist's Guide
The Ethics of Generative AI: A Humanist's Guide
 
Zero to Hipster with the M.I.K.E. Stack
Zero to Hipster with the M.I.K.E. StackZero to Hipster with the M.I.K.E. Stack
Zero to Hipster with the M.I.K.E. Stack
 
Telerik AppBuilder Presentation for TelerikNEXT Conference
Telerik AppBuilder Presentation for TelerikNEXT ConferenceTelerik AppBuilder Presentation for TelerikNEXT Conference
Telerik AppBuilder Presentation for TelerikNEXT Conference
 

Recently uploaded

MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGSIVASHANKAR N
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 

Recently uploaded (20)

MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 

Using Beacons in a Mobile App - IoT Nearables

  • 1. Getting up close and personal with IoT Nearables Jen Looper
  • 2. Jen Looper Developer Advocate, Telerik http://www.ladeezfirstmedia.com @jenlooper
  • 5. Except much more precise: indoor location FTW Use several beacons to triangulate your location in a room
  • 6. Beacons might feature: • A bit of memory • Accelerometer • Temperature sensor • Bluetooth (Smart, or BLE) • Long-lived battery • Gecko-style sticky backing
  • 7. Bluetooth signal • Beacons broadcast using bluetooth • Find them between two inches and 230 feet distance • Invisible underwater
  • 8. Your phone picks up a signal (“advertising packet”) and your app processes it • Estimates distance • Places phone in a context • Measures signal strength • Can ping 10x/second
  • 9. Beacons have a unique Id Associate this id with a product or a call to action
  • 10. And moar! • Micro-location • Geofence users • Detect context changes • Proximity marketing • Turn-by-turn navigation
  • 11. Not just for selling stuff Kontakt.io use cases include: • Public beacons for use by the blind • Beacons for music festivals (Bonnaroo) to ‘heat map’ areas of the festival and create ‘retrospective itinerary’ as a festival souvenir for the users • Restaurant interactions – check in, get free appetizers, etc • Allow businesses to pay for patron parking fees in a movable parking meter system • ‘beaconizing’ SFO airport by offering voice-routing to visually- empaired passengers • Beacons in Africa – track and manage outbreaks • Culture and tourism***
  • 12. Museums!! Check out the Metropolitan Museum’s ‘Beacon Walk’ http://bit.ly/met-museum-beacon Uses Estimotes with Beacondo service
  • 13. What about iBeacon? iBeacon is a protocol created by Apple, for iOS 7 and 8 devices Many hardware beacons leverage iBeacon technology
  • 14. What types of hardware beacons are available now? • DIY – Bluetooth dongle can be turned into a beacon • Facebook Bluetooth Beacons • Estimote beacons • Kontakt.io beacons
  • 16. Beacons can be hacked  
  • 17. Hacking the CES scavenger hunt http://bit.ly/ces-hack
  • 18. Estimotes have beefed up security Manage your beacons’ UUIDs
  • 19. A look at Estimote’s offering Beacons and Stickers, $99 per pack, SDK + Cloud
  • 22. A Civic Project - BookBeacon Requirements: • Create a mobile app for a public library • Library will hide a beacon in the stacks, near a book with an ISBN code • Mobile app will help users find the beacon and, when found, open barcode scanner to scan ISBN • ISBN is used with an API to get more info about the book
  • 24. Create a mobile app – Telerik AppBuilder + Kendo UI Mobile Create a hybrid mobile app project in Telerik Platform (http://platform.telerik.com)
  • 25. Two views – manage beacons, scan books /views/beacons.html /views/scan.html
  • 26. Two buttons in beacons.html: start and stop scanning for beacons <div data-role="view" data-title="Find Featured Books" data-layout="main" data- model="app.beaconService.viewModel"> <div class="rounded"> <div id="beaconlog"> Looking for beacons... </div> <div class="buttons"> <button data-role="button" class="button start" data-bind="click: start">Start Searching</button> <button data-role="button" class="button stop" data-bind="click: stop">Stop Searching</button> </div> </div> </div>
  • 27. One button and one link in scan.html <div data-role="view" data-title="Scan an ISBN bar code" data-layout="main" data- model="app.beaconService.viewModel"> <div class="rounded"> You found a beacon! Now scan the ISBN bar code on the back cover to learn more about the featured book. <div class="buttons"> <button class="button scan">Scan a Bar Code</button> </div> <div id="bookinfo”></div> </div> </div>
  • 28. Wire up the beacon scanning procedure function onBeaconsReceived(result) { if (result.beacons && result.beacons.length > 0) { var msg = "<b>I found " + result.beacons.length + " beacons! Find them and scan the ISBN codes of the books to which they are attached to learn more about them.</b><br/>"; for (var i=0; i<result.beacons.length; i++) { var beacon = result.beacons[i]; if(beacon.distance > 0){ msg += "<br/>"; if (beacon.color !== undefined) { msg += "There is a <b>" + beacon.color + "</b> beacon "; } …
  • 29. Plug in the plugins! Use two plugins from http://plugins.telerik.com - curated Cordova plugins marketplace: Estimote and BarcodeScanner
  • 30. Integrating Barcode Scan plugin scan: function () { cordova.plugins.barcodeScanner.scan( function (result) { setTimeout(function() { var url = 'http://www.lookupbyisbn.com/Search/Book/' + result.text + '/1'; var bookinfo = "<a href='#' onclick=window.open('" + url + "','_blank')>Learn more about this book</a>"; document.getElementById('bookinfo').innerHTML = bookinfo; }, 0); }, function (error) { alert("Scanning failed: " + error); } ) },
  • 32. Let’s build something else: Beacon Hunt
  • 35. Estimote Beacons + Plugin + AppBuilder + Telerik Backend Services = fun app!
  • 36. Beacon Hunt Requirements: • Allow an administrator or host to create a Beacon Hunt by creating a 6-digit PIN unique to that hunt • Enable sending this PIN to users of the app via email • Allow invitees to the hunt to input the PIN and subscribe to a push notification channel unique to the hunt • On push of ‘start’ button, app starts pinging for beacons • If beacon is found, appropriately colored button is generated, and when pressed, a push notification is sent to the members of the hunt that this color beacon has been found (“claimed”).
  • 37. Building the app – Step 1 - Setup Using Telerik Platform makes it easy Create an account at platform.telerik.com and create an app
  • 38. Building the app – Step 2 – Scaffold Scaffold a basic Kendo UI Mobile app Create a hybrid project using a blank JavaScript template
  • 39. Building the app – (quick ‘n’ dirty) Scaffold your app using code from github https://github.com/jlooper/beacon-hunt.git
  • 40. Building the app – Step 3 – Build ‘host’ screen A 6 digit PIN will reserve your hunt ID. Use Telerik Backend Services to store it. Add Backend Services to your project to store data
  • 41. Build Data tier for ‘host’ screen Add push notifications and cloud data to your app project’s backend configuration Create a ‘content type’ to store HuntPINs so they will remain unique for use as push segments
  • 42. Configure push notifications Manage your app provisioning (takes time to do on iOS especially!) Keep track of push stats in the backend
  • 43. Build the app – Step 4 – Plugins!! Plugins.telerik.com
  • 44. Integrate 3 plugins: Install Custom plugins from the Plugin marketplace in-browser
  • 45. Build the app – Step 5 – Participant screen Type the PIN, subscribe to a push segment, start searching, claim a beacon, send push
  • 46. Build the app – Step 5 – Participant screen Your Hunt is geofenced according to the segment you are subscribed to, per your hunt PIN which is stored in localStorage: var customDeviceParameters = { "Hunt":localStorage.getItem('registeredHunt') }; … currentDevice.register(customDeviceParameters) .then(function (regData) { model._onDeviceIsSuccessfullyRegistered(); }, function (err) { model._onPushErrorOccurred(err.message); });
  • 47. Push to a segment Anyone signed into the GalHnt segment received this push The user claimed the ‘ice’ color beacon
  • 49. Beacons are awesome. What will you build?
  • 50. Did you download Beacon Hunt? Ready to hunt for beacons?
  • 51. Let’s go! Hunt PIN: CPLNOW
  • 52. Thanks! Jen Looper Developer Advocate, Telerik http://www.ladeezfirstmedia.com @jenlooper