iBeacons show great promise, but real-world issues prevent them from working as well as we might like. This presentation describes the issues and proposes some possible solutions.
This document provides information on using beacons in Titanium mobile applications. It discusses beacon concepts like UUID, major, and minor values. It also covers implementing beacon monitoring and ranging on iOS and Android, including required permissions and configuration. Background processing is enabled through settings in the TiModule.xml file to allow ranging when the app is in the background.
How To Control Your Electric Blanket With a Spark CoreJeffrey Camealy
This document discusses how to control an electric blanket wirelessly using a Spark Core microcontroller. It describes opening up the original blanket controller, soldering on the Spark Core, powering it using the existing plug, and programming the Spark Core using its online IDE to build an iPhone app that can remotely control the blanket's temperature levels from anywhere over WiFi. The Spark Core allows the blanket to connect to the internet and be controlled from a phone without needing to modify the blanket's wiring.
Integrating iBeacons into your appcelerator project using Glimworm BeaconsJonathan Carter
Presented at the Appcelerator Titanium Amsterdam Meetup on the 5th Feb 2014. Co-founder of GlimwormBeacons Jonathan carter explains how to integrate iBeacon technology into your Appcelerator Titanium projects.
Glimworm Beacons is the first mass producer of iBeacon compatible sensors in the Netherlands and The slides explain some of the USPs of the product.
Glimworm Beacons is platform agnostic and aims to provide developers with a hardware product to deliver to their clients as opposed to being a solution provider.
This document discusses and compares various technologies for mobile marketing interactions within stores, including beacons, NFC, QR codes, ultrasound, and lighting. It outlines the advantages and disadvantages of each technology, how they work, which devices they support, common uses, and constraints on user experience. Beacons are highlighted as particularly promising for in-store marketing due to their ability to send push notifications, compatibility across platforms, and potential for personalized messaging and integration with CRM systems. However, over-reliance on push notifications also poses a risk of annoying customers.
Intro to iBeacon and Bluetooth Low EnergyKurt McIntire
FULL VIDEO ON YOUTUBE - https://www.youtube.com/watch?v=wpl1f8f4Vis
Speaker: Kurt McIntire, Co-Founder, Vektor Digital
@kurtmcintire, @vektordigital
iBeacons are small devices that transmit data via Bluetooth Low Energy. iOS devices can detect these signals as well as transmit data as iBeacons. When within range of an iBeacon, events like push notifications and server calls can be triggered inside apps.
As mobile marketers and developers, iBeacon technology presents us an incredible opportunity to build sophisticated, proximity based apps for clients and for distribution on the App Store.
In this talk, we’ll explore:
1. What are iBeacons and BLE?
2. How to detect iBeacons inside your apps
3. How to make your iOS device act as an iBeacon
4. Potential applications / Apps using iBeacon
iBeacon is an indoor positioning system that uses Bluetooth Low Energy beacons to provide location services to iOS devices. Beacons broadcast a signal that includes a proximity UUID, major and minor values that allow an app to detect beacons and understand proximity. The CoreLocation API exposes APIs to monitor for regions defined by beacons and range beacons to determine distance. While beacons enable new location-based experiences, their location capabilities are approximate rather than precise and they cannot directly push information, require an app to be open for ranging, or enable payments. Support for beacons also exists on Android through third parties.
This document provides information on using beacons in Titanium mobile applications. It discusses beacon concepts like UUID, major, and minor values. It also covers implementing beacon monitoring and ranging on iOS and Android, including required permissions and configuration. Background processing is enabled through settings in the TiModule.xml file to allow ranging when the app is in the background.
How To Control Your Electric Blanket With a Spark CoreJeffrey Camealy
This document discusses how to control an electric blanket wirelessly using a Spark Core microcontroller. It describes opening up the original blanket controller, soldering on the Spark Core, powering it using the existing plug, and programming the Spark Core using its online IDE to build an iPhone app that can remotely control the blanket's temperature levels from anywhere over WiFi. The Spark Core allows the blanket to connect to the internet and be controlled from a phone without needing to modify the blanket's wiring.
Integrating iBeacons into your appcelerator project using Glimworm BeaconsJonathan Carter
Presented at the Appcelerator Titanium Amsterdam Meetup on the 5th Feb 2014. Co-founder of GlimwormBeacons Jonathan carter explains how to integrate iBeacon technology into your Appcelerator Titanium projects.
Glimworm Beacons is the first mass producer of iBeacon compatible sensors in the Netherlands and The slides explain some of the USPs of the product.
Glimworm Beacons is platform agnostic and aims to provide developers with a hardware product to deliver to their clients as opposed to being a solution provider.
This document discusses and compares various technologies for mobile marketing interactions within stores, including beacons, NFC, QR codes, ultrasound, and lighting. It outlines the advantages and disadvantages of each technology, how they work, which devices they support, common uses, and constraints on user experience. Beacons are highlighted as particularly promising for in-store marketing due to their ability to send push notifications, compatibility across platforms, and potential for personalized messaging and integration with CRM systems. However, over-reliance on push notifications also poses a risk of annoying customers.
Intro to iBeacon and Bluetooth Low EnergyKurt McIntire
FULL VIDEO ON YOUTUBE - https://www.youtube.com/watch?v=wpl1f8f4Vis
Speaker: Kurt McIntire, Co-Founder, Vektor Digital
@kurtmcintire, @vektordigital
iBeacons are small devices that transmit data via Bluetooth Low Energy. iOS devices can detect these signals as well as transmit data as iBeacons. When within range of an iBeacon, events like push notifications and server calls can be triggered inside apps.
As mobile marketers and developers, iBeacon technology presents us an incredible opportunity to build sophisticated, proximity based apps for clients and for distribution on the App Store.
In this talk, we’ll explore:
1. What are iBeacons and BLE?
2. How to detect iBeacons inside your apps
3. How to make your iOS device act as an iBeacon
4. Potential applications / Apps using iBeacon
iBeacon is an indoor positioning system that uses Bluetooth Low Energy beacons to provide location services to iOS devices. Beacons broadcast a signal that includes a proximity UUID, major and minor values that allow an app to detect beacons and understand proximity. The CoreLocation API exposes APIs to monitor for regions defined by beacons and range beacons to determine distance. While beacons enable new location-based experiences, their location capabilities are approximate rather than precise and they cannot directly push information, require an app to be open for ranging, or enable payments. Support for beacons also exists on Android through third parties.
iBeacons - the new low-powered way of location awarenessStefano Zanetti
This document provides an overview of iBeacons and Bluetooth Low Energy technology. It defines what an iBeacon is, which is a Bluetooth LE radio that broadcasts identifying information that can be detected by mobile devices. It describes how iBeacons could be used in various scenarios like providing location-based experiences in museums. It also covers the core concepts of Bluetooth LE, the iBeacon format, and how to detect and monitor iBeacons using the CoreLocation and CoreBluetooth frameworks in iOS. Code examples are provided for detecting iBeacons in the foreground and background of an iOS app.
The document summarizes key aspects of the Windows Phone 7 operating system user interface and development platform. It describes the Metro design approach used in the UI, how tiles are used to access applications and receive live updates, and how themes allow customizing colors. It also outlines common UI controls, data binding, application lifecycle handling, and use of isolated storage, web services, and location services in apps.
Droid con 2015 - experimenting monitoring and proximity techniques using andr...Commit University
The document discusses using iBeacon technology and proximity sensing to track movement and push content to smartphones. It explores using iBeacon monitoring and ranging to determine when a device enters or exits a region defined by beacons. The author conducted experiments with iBeacon libraries and developing indoor location and wayfinding apps to push notifications. While iBeacons made proximity marketing and content delivery easy, indoor location proved more challenging without advanced techniques or external sensors.
here,this report gives the important details regarding navigation system of submarine or the under water vehcile,the report include autonomous navigation system detail.
The aim of “BLUESLEMON” project is to develop a low-cost automatic system for monitoring landslide surface displacement using drones and BT beacons. The proposed drone architecture is developed to go beyond the current state-of-the-art techniques and is characterized by autonomous navigation capabilities. The UAV platform is equipped with obstacle-detection sensors and collision-avoidance algorithms, allowing the smart UAS to be easily employed for autonomous navigation, even in case of diverse environments or applications (search-and-rescue operations in alpine environments or automatic surveillance in urban areas).
Experimenting Monitoring and Proximity techniques using Android potential and...DuckMa
Matteo Gazzurelli - DroidCon 2015 Italy - 9th April 2015 - Turin
Title: Experimenting Monitoring and Proximity techniques using Android potential and iBeacon devices
Abstract: What is iBeacon technology and what is used for?
How can we use this technology to effectively track people movements in a closed space like a room or a shop?
How can we push them interesting contents based on their proximity to an object?
In my presentation I will show you how to create a simple indoor location app to locate users in a room mapped through some iBeacon devices. Then I will show you how to interact with users presenting them notifications and contents based on their distance from iBeacon devices.
The talk explain what is an iBeacon and how Android can interact with it. How to create and send notifications not only to a device but also to an Android Wear smart watch.
I will show some source code of the app (available later in Github) and a live demo app that map users in a room filled with some iBeacons.
The document describes the Rover system, which provides location-aware services to users across various wireless devices. It consists of a Rover controller that interacts with components like the location server, media streaming unit, and Rover database. The Rover controller tailors information and services based on users' current locations. The system was initially implemented and tested successfully in both indoor and outdoor environments, providing location accuracy within a few meters. Potential applications of this type of robotic system include military operations, industrial tasks, scientific research, and search and rescue missions.
Developing context aware applications with iBeacons technologySuresh Balla
Having mobile applications that is context aware leads to interesting use cases. Imagine you are walking through a shopping mall and your mobile application shows near by shops where you are located, with information like products available, offers available etc as you walk by it. In this session, we will see a brief history of iBeacons, what it is and how it can be useful for building context aware applications. Also we will see how we can create an Android application using C# that is context aware.
This document discusses headless apps in BlackBerry 10. It defines a headless app as an app that runs in the background without a visible UI. It describes how to create a demo app that uses geofencing to trigger a headless service to send a notification when the user enters a specified region. The demo app is designed to send reminders to water plants either based on location or time. It provides code samples for setting up the geofence region, handling invoke requests from the geofence trigger, and triggering a notification from the headless service.
Mobile development in age of Internet of Things and programming Apple WatchJanusz Chudzynski
Explore differences between mobile development platforms and learn about tools and resources that can be used to create mobile applications. In the second part of the presentation you will learn what’s the role of mobile devices in Internet of Things, see a demo of the Apple Watch and importance of a iBeacon, one of the hottest technologies of 2014.
The document discusses new location and maps APIs in Windows Phone 8. It introduces the Windows Phone Runtime Location API for getting the phone's current location and tracking location continuously or in the background. It also covers the new Maps control for displaying maps and adding pushpins. It provides code examples for using the location and maps APIs.
Matchinguu is a startup based in Munich that provides location-based solutions and APIs for Android and iOS devices. Their presentation discusses various location provider technologies available on Android devices, including cell-ID, WLAN, GPS, geohashing, and beacons. They provide services like APIs, backend software, and hardware to help businesses integrate complex location-based scenarios.
Alberto Guarino "When iPhones and Wearables Dance the Bluetooth Dance: Lesson...IT Event
Creating a mobile app that communicates with a custom wearable device via a Bluetooth Low Energy connection seems like an unusual experience, that wouldn't possibly happen to you, would it? Well, let me tell you that the Internet of Things is here and it's full of interesting opportunities, so we, as a community, should keep learning and get ready to seize them!
During this talk, I'd like to tell you a few stories and lessons learned about my experience creating iOS apps and SDKs to interface with several smartwatches made for monitoring physiological signals. We'll go through code samples, tools, unexpected bugs, clever ideas and bad mistakes, hoping we'll learn something together in the process.
I os developers_meetup_4_sessionon_locationservicesMahboob Nur
This document summarizes a presentation on location services in iOS, including GPS, MapKit, Core Location, and region monitoring/geofencing. It provides code examples for initializing a location manager, activating GPS using Core Location, implementing region monitoring by defining regions and monitoring for boundary crossings, and important classes like CLCircularRegion for defining circular geo fences.
The document discusses Bluetooth Low Energy (BLE) and iBeacons. It provides an overview of BLE, how it differs from classic Bluetooth, and how it can be implemented in iOS apps using CoreBluetooth. It then explains what iBeacons are, how they work by broadcasting UUID, major and minor values, and how they can be used for proximity-based notifications and interactions in apps. It also discusses how a Raspberry Pi can be turned into an iBeacon transmitter using BLE hardware and open source software.
Building a Mobile Location Aware System with BeaconsTim Messerschmidt
This talk got delivered at OSCON EU 2015. It covers the usage of Bluetooth LE Beacons in order to allow for real world interaction with users that you normally deal with through an API.
iNeOM is a unique system for telecom operators. iNeOM is a centralised database equipped with many feature to make job easier, especially for the engineers that maintaining the equipments in the field. iNeOM equipped with mobile application, build specifically for mobile operating system (Android, iOS, dan Windows Phone), so that everyone from management level to field engineers can easily access for needed information, everywhere and every time. iNeOM designed with strong philosophy in the usability, all the feature derived from real field experiences that related to network maintenance activity.
1) Background agents allow Windows Phone applications to perform tasks even when they are not in the foreground. There are two types of background agents: periodic agents that run every 30 minutes and resource intensive agents that run when the phone is charging.
2) Background agents have limited access to phone resources and can only run for a maximum of 25 seconds for periodic agents and 10 minutes for resource intensive agents.
3) The document provides examples of using background agents to perform periodic location tracking, file transfers, and audio playback even when the main application is not active.
The document describes the process of developing an application on Raspberry Pi that uses computer vision and Java APIs to detect hand gestures and control home appliances via IR signals. The application continuously captures camera input, detects hand gestures using OpenCV, and passes appropriate signals to an IR device to control devices like a TV. Key steps include connecting the IR device to the application via SmartConfig, teaching gestures during a learning mode, and executing gestures during operation to control devices in real-time. The goal is to implement intelligent home automation through contactless hand gesture recognition.
iBeacons - the new low-powered way of location awarenessStefano Zanetti
This document provides an overview of iBeacons and Bluetooth Low Energy technology. It defines what an iBeacon is, which is a Bluetooth LE radio that broadcasts identifying information that can be detected by mobile devices. It describes how iBeacons could be used in various scenarios like providing location-based experiences in museums. It also covers the core concepts of Bluetooth LE, the iBeacon format, and how to detect and monitor iBeacons using the CoreLocation and CoreBluetooth frameworks in iOS. Code examples are provided for detecting iBeacons in the foreground and background of an iOS app.
The document summarizes key aspects of the Windows Phone 7 operating system user interface and development platform. It describes the Metro design approach used in the UI, how tiles are used to access applications and receive live updates, and how themes allow customizing colors. It also outlines common UI controls, data binding, application lifecycle handling, and use of isolated storage, web services, and location services in apps.
Droid con 2015 - experimenting monitoring and proximity techniques using andr...Commit University
The document discusses using iBeacon technology and proximity sensing to track movement and push content to smartphones. It explores using iBeacon monitoring and ranging to determine when a device enters or exits a region defined by beacons. The author conducted experiments with iBeacon libraries and developing indoor location and wayfinding apps to push notifications. While iBeacons made proximity marketing and content delivery easy, indoor location proved more challenging without advanced techniques or external sensors.
here,this report gives the important details regarding navigation system of submarine or the under water vehcile,the report include autonomous navigation system detail.
The aim of “BLUESLEMON” project is to develop a low-cost automatic system for monitoring landslide surface displacement using drones and BT beacons. The proposed drone architecture is developed to go beyond the current state-of-the-art techniques and is characterized by autonomous navigation capabilities. The UAV platform is equipped with obstacle-detection sensors and collision-avoidance algorithms, allowing the smart UAS to be easily employed for autonomous navigation, even in case of diverse environments or applications (search-and-rescue operations in alpine environments or automatic surveillance in urban areas).
Experimenting Monitoring and Proximity techniques using Android potential and...DuckMa
Matteo Gazzurelli - DroidCon 2015 Italy - 9th April 2015 - Turin
Title: Experimenting Monitoring and Proximity techniques using Android potential and iBeacon devices
Abstract: What is iBeacon technology and what is used for?
How can we use this technology to effectively track people movements in a closed space like a room or a shop?
How can we push them interesting contents based on their proximity to an object?
In my presentation I will show you how to create a simple indoor location app to locate users in a room mapped through some iBeacon devices. Then I will show you how to interact with users presenting them notifications and contents based on their distance from iBeacon devices.
The talk explain what is an iBeacon and how Android can interact with it. How to create and send notifications not only to a device but also to an Android Wear smart watch.
I will show some source code of the app (available later in Github) and a live demo app that map users in a room filled with some iBeacons.
The document describes the Rover system, which provides location-aware services to users across various wireless devices. It consists of a Rover controller that interacts with components like the location server, media streaming unit, and Rover database. The Rover controller tailors information and services based on users' current locations. The system was initially implemented and tested successfully in both indoor and outdoor environments, providing location accuracy within a few meters. Potential applications of this type of robotic system include military operations, industrial tasks, scientific research, and search and rescue missions.
Developing context aware applications with iBeacons technologySuresh Balla
Having mobile applications that is context aware leads to interesting use cases. Imagine you are walking through a shopping mall and your mobile application shows near by shops where you are located, with information like products available, offers available etc as you walk by it. In this session, we will see a brief history of iBeacons, what it is and how it can be useful for building context aware applications. Also we will see how we can create an Android application using C# that is context aware.
This document discusses headless apps in BlackBerry 10. It defines a headless app as an app that runs in the background without a visible UI. It describes how to create a demo app that uses geofencing to trigger a headless service to send a notification when the user enters a specified region. The demo app is designed to send reminders to water plants either based on location or time. It provides code samples for setting up the geofence region, handling invoke requests from the geofence trigger, and triggering a notification from the headless service.
Mobile development in age of Internet of Things and programming Apple WatchJanusz Chudzynski
Explore differences between mobile development platforms and learn about tools and resources that can be used to create mobile applications. In the second part of the presentation you will learn what’s the role of mobile devices in Internet of Things, see a demo of the Apple Watch and importance of a iBeacon, one of the hottest technologies of 2014.
The document discusses new location and maps APIs in Windows Phone 8. It introduces the Windows Phone Runtime Location API for getting the phone's current location and tracking location continuously or in the background. It also covers the new Maps control for displaying maps and adding pushpins. It provides code examples for using the location and maps APIs.
Matchinguu is a startup based in Munich that provides location-based solutions and APIs for Android and iOS devices. Their presentation discusses various location provider technologies available on Android devices, including cell-ID, WLAN, GPS, geohashing, and beacons. They provide services like APIs, backend software, and hardware to help businesses integrate complex location-based scenarios.
Alberto Guarino "When iPhones and Wearables Dance the Bluetooth Dance: Lesson...IT Event
Creating a mobile app that communicates with a custom wearable device via a Bluetooth Low Energy connection seems like an unusual experience, that wouldn't possibly happen to you, would it? Well, let me tell you that the Internet of Things is here and it's full of interesting opportunities, so we, as a community, should keep learning and get ready to seize them!
During this talk, I'd like to tell you a few stories and lessons learned about my experience creating iOS apps and SDKs to interface with several smartwatches made for monitoring physiological signals. We'll go through code samples, tools, unexpected bugs, clever ideas and bad mistakes, hoping we'll learn something together in the process.
I os developers_meetup_4_sessionon_locationservicesMahboob Nur
This document summarizes a presentation on location services in iOS, including GPS, MapKit, Core Location, and region monitoring/geofencing. It provides code examples for initializing a location manager, activating GPS using Core Location, implementing region monitoring by defining regions and monitoring for boundary crossings, and important classes like CLCircularRegion for defining circular geo fences.
The document discusses Bluetooth Low Energy (BLE) and iBeacons. It provides an overview of BLE, how it differs from classic Bluetooth, and how it can be implemented in iOS apps using CoreBluetooth. It then explains what iBeacons are, how they work by broadcasting UUID, major and minor values, and how they can be used for proximity-based notifications and interactions in apps. It also discusses how a Raspberry Pi can be turned into an iBeacon transmitter using BLE hardware and open source software.
Building a Mobile Location Aware System with BeaconsTim Messerschmidt
This talk got delivered at OSCON EU 2015. It covers the usage of Bluetooth LE Beacons in order to allow for real world interaction with users that you normally deal with through an API.
iNeOM is a unique system for telecom operators. iNeOM is a centralised database equipped with many feature to make job easier, especially for the engineers that maintaining the equipments in the field. iNeOM equipped with mobile application, build specifically for mobile operating system (Android, iOS, dan Windows Phone), so that everyone from management level to field engineers can easily access for needed information, everywhere and every time. iNeOM designed with strong philosophy in the usability, all the feature derived from real field experiences that related to network maintenance activity.
1) Background agents allow Windows Phone applications to perform tasks even when they are not in the foreground. There are two types of background agents: periodic agents that run every 30 minutes and resource intensive agents that run when the phone is charging.
2) Background agents have limited access to phone resources and can only run for a maximum of 25 seconds for periodic agents and 10 minutes for resource intensive agents.
3) The document provides examples of using background agents to perform periodic location tracking, file transfers, and audio playback even when the main application is not active.
The document describes the process of developing an application on Raspberry Pi that uses computer vision and Java APIs to detect hand gestures and control home appliances via IR signals. The application continuously captures camera input, detects hand gestures using OpenCV, and passes appropriate signals to an IR device to control devices like a TV. Key steps include connecting the IR device to the application via SmartConfig, teaching gestures during a learning mode, and executing gestures during operation to control devices in real-time. The goal is to implement intelligent home automation through contactless hand gesture recognition.
2. INDOOR LOCALISATION
• GPS is not an option
- Low spatial discrimination (10m)!
- Poor signal penetrance through buildings!
• Unique building shapes - Signal reflection issues!
• Noisy environment - Many signals, varying crowd
density
3. BEACONTECHNOLOGY
• Small Bluetooth emitting devices!
• Battery powered!
• Significantly larger range than NFC!
• Uses Bluetooth Low Energy (LE) protocol
4. Geofencing
Passive process, alerting
user to location based
information!
Outdoors
- Reminders!
Indoors
- Art gallery
walkthroughs!
- Special offers
Geolocation
Active process, providing
user with precise
location!
Outdoors & Indoors
- Route navigation
USE CASES
5. Geofencing
Passive process, alerting
user to location based
information!
Outdoors
- Reminders!
Indoors
- Art gallery
walkthroughs!
- Special offers
Geolocation
Active process, providing
user with precise
location!
Outdoors & Indoors
- Route navigation
USE CASES
6. BARRIERSTO ENTRY
• Upfront costs
- Beacons, licences for services!
• Implementation
- Installation of beacons, databases, content!
• Security
- Physical and software
24. 1 2
3 4
Each point
x,y co-ordinates
Collect several training data sets
at different orientations
Beacon 1 RSSI!
Beacon 2 RSSI!
Beacon 3 RSSI!
Beacon 1 RSSI!
Beacon 2 RSSI!
Beacon 3 RSSI!
Beacon 1 RSSI!
Beacon 2 RSSI!
Beacon 3 RSSI!
Beacon 1 RSSI!
Beacon 2 RSSI!
Beacon 3 RSSI!
FINGERPRINTING
25. Mobile device receives
an RSSI from each
beacon, creating its
own data set.
The received data set is compared with the training
data set to estimate the most probable user location
1 2
3 4
FINGERPRINTING
26. TIBEACON MODULE
• Allows you to create up to 5 beacon regions!
• Regions defined by;!
- UUID!
- UUID and major!
- UUID, major, and minor
27. ACCESSINGTHE MODULE
To access the module in JavaScript, you would do the
following;!
!
!
TheTiBeacon variable is a reference to the Module
object.
var TiBeacon = require("co.mobiledatasystems.tibeacon");
28. REFERENCE
The following functions are exposed;!
• initializeBeaconMonitoring - used to register the app with core location services
• startMonitoringBeaconRegion - can be called several times and is used to
register a region with core location services
• stopMonitoringBeaconRegion - used to stop and clear down a region and
remove it from core location services!
• stopAllBeacons - used to stop and clear down all the beacon regions and remove
them all from core location services!
• sendLocalNotification - a convenience function that allows you to send an
immediate local notification
29. initializeBeaconMonitoring
arguments:!
• success - A function that is called when the module successfully registers with core location
services.!
• error - A function that is called when the module fails to register with core location services.!
• region - A function that is called when we detect we have entered or exited a beacon region.!
• ranged - A function that is called whenever we successfully process beacon monitoring (roughly
every second) and returns the beacons found.!
• change - A function that is called when we detect another beacon is the nearest one.!
purpose: Used to register the app with core location services.We specify the functions that will be called
when one of the modules events fire.
30. initializeBeaconMonitoring
TiBeacon.initializeBeaconMonitoring({
success:function(e){
//called when we have registered core location services
},
error:function(e){
//called if we fail to register the core location services
alert("This device doesn't support iBeacons");
},
region:function(e){
//called when we enter or exit a region
},
ranged:function(e){
//when the app is in foreground, this returns all the beacons
},
change:function(e){
//called when a new beacon becomes the nearest one
}
});
!
31. startMonitoringBeaconRegion
arguments: !
• uuid -The uuid we will listen for, estimotes use this by default ‘B9407F30-F5F8-466E-
AFF9-25556B57FE6D’.!
• major -The major value that the beacon will transmit (optional, may be omitted).!
• minor -The minor value that the beacon will transmit (optional, may be omitted).!
• identifier - A string we use to identify the region. It is returned in the beacon data so we can identify the
region the beacon belongs to.!
• notifyEntryStateOnDisplay - Should be left set to true, used for module debugging purposes.!
• keepRanging - When we have exited a region, if false ranging will be switched off until we detect we
entered the region again. This may be slow but significantly saves battery power. Setting to true leaves
ranging on, improving performance at the expense of power consumption.
32. startMonitoringBeaconRegion
purpose: !
We call this once we have successfully registered the module with core location services. Core
location services will detect when we have entered or exited a beacon region, even if the app is
no longer running and will fire the regionChanged event.This is exposed in the region event in
the 'initializeBeaconMonitoring' function.!
If the app is running in foreground and the 'keepRanging' argument is 'true' then regardless of
whether we are in a region we will continue to check for beacons.!
If a beacon is detected that belongs to the beacon region, its data is returned in the ranged
event.This is exposed in the ranged event in the 'initializeBeaconMonitoring' function. If we
detect that a different beacon in the same region is now neared then the change event is fired.
33. startMonitoringBeaconRegion
// begin monitoring a specific region.
// must initialise beacons before calling this method
// we can call this several times to create different regions to monitor
!
beacons.startMonitoringBeaconRegion({
uuid:'B9407F30-F5F8-466E-AFF9-25556B57FE6D',
identifier:'all', // a logical name that is returned when beacons
// fire events so we can easily identify which
// region they belong to
!
notifyEntryStateOnDisplay:true,
!
keepRanging:true // tells the module to keep on ranging even if
// no beacons are in a region, this improves
// performance at the expense of power consumption
});
!
!
34. stopMonitoringBeaconRegion
arguments:!
• identifier -The string we used to identify the region when we started monitoring.!
purpose: Stop monitoring for that region and remove it from core location services.You can therefore safely
call startMonitoringBeaconRegion again to begin monitoring for the same region if you then wish.
35. stopMonitoringBeaconRegion
arguments:!
• identifier -The string we used to identify the region when we started monitoring.!
purpose: Stop monitoring for that region and remove it from core location services.You can therefore safely
call startMonitoringBeaconRegion again to begin monitoring for the same region if you then wish.
stopAllBeacons
arguments: None!
purpose: Stop monitoring for all the regions and remove them from core location services.
36. stopping Monitoring
// stop monitoring for a specific region
!
// we can stop a specific region
TiBeacon.stopMonitoringBeaconRegion({
identifier:'all'
});
!
// …or we can stop monitoring all the regions
// stop monitoring all regions
TiBeacon.stopAllBeacons();
37. sendLocalNotification
arguments:!
• message -The string we will display in the local notification.!
• sound -The sound we will play when the local notification fires.!
purpose:A convenience method to send a local notification. Even if the app is no
longer running, if we detect a region event (i.e. we have entered or exited a
region) core location services will open the app and trigger the region event for a
few seconds before shutting down again.You can therefore call this function to
trigger a local notification to alert the user that they have entered or exited a
beacon region.
39. LICENSE
Commercial, Royalty free, see license details.!
You are allowed to use the module in as many titanium projects
as you like, including any commercial apps you sell.
Martin Hudson MSc!
MAPM mobile data systems ltd.!
email: martin.hudson@mobiledatasystems.co
Public repo: https://bitbucket.org/tojoroja/tibeacon