Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hybrid Mobile Development with Ionic

You're reading from   Hybrid Mobile Development with Ionic Building highly interactive mobile apps

Arrow left icon
Product type Paperback
Published in Apr 2017
Publisher Packt
ISBN-13 9781785286056
Length 242 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Gaurav Saini Gaurav Saini
Author Profile Icon Gaurav Saini
Gaurav Saini
Arrow right icon
View More author details
Toc

Proximity-based screen lock using BLE

This is something that I have been thinking of for a while to implement and is a real-life problem for me. It's time to look into how practical it can be to use BLE stack with an Ionic application. While working in my office, I have to quite often had leave my seat for taking some urgent calls or to attend some meetings. Most of the time I forget to screen lock my laptop. So, I thought of building this proximity based screen lock application using BLE and Websockets.

Let's first look quickly look into how the application will work. Ionic based application listens to the iBeacon packets from the continuously broadcasting laptop. As, soon as I move from my seat with my mobile, at some point it will exit from the broadcasting region of my laptop. Immediately it will send a socket request over the network to the Node.js based application running on my Ubuntu laptop and...

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