Developer Skill Sprint: Taking Beacons to the Next Level


Developer Skill Sprint: Taking Beacons to the Next Level David Intersimone “David I” – VP of Developer Relations and Chief Evangelist Tuesday, August 11, 2015
YouTube replay –
What’s covered during this Developer Skill Sprint? We look at the use of Bluetooth Low Energy Beacons and the new BeaconFence, beacon fencing solution for developers, announced by Embarcadero. Beacons (iBeacon and AltBeacon) and Beacon Fencing are used in retail, manufacturing, warehousing, healthcare and entertainment venues just to name a few use cases. During this developer skill sprint you’ll learn how to create beacon maps, beacon zones and how to create beacon fencing applications for iOS, Android and OSX.
What is BeaconFence? BeaconFence is the new developer proximity solution available from Embarcadero. BeaconFence allows you to

Build mobile apps that deliver precise “GPS-Free” indoor/outdoor user location tracking and events
Create radial and rectangular zones for any physical location and layout
Visually draw the layout of a physical location and beacon placement
Track location information down to inches
Track intersections, enters, and exits with callback events

BeaconFence provides two components
There are two components for beacon fencing: TBeaconZonesFencing and TBeaconMapFencing. TBeaconZonesFencing uses zones (that you define) for proximity based applications. TBeaconMapFencing has a visual BeaconFence map editor that lets you load a bitmap layout or design a layout. You can add and configure different objects in the map editor: maps, zones, beacons and paths with nodes.
BeaconFence Position Calculation
The API for BeaconFence provides the System.Beacon.Fencing.PositionCalculator unit, where you can find the necessary classes used to estimate the current position of your BLE device in a specific map. The default implementation of TPositionCalculator embeds the main functionalities of a particle filter algorithm optimized for localization tasks. In particular, this particle filter corresponds to a Monte Carlo Localization algorithm.
Adding App Background Support for iBeacons on iOS
If you use iBeacons in your App you need to allow your application to run in background so that the BLE device wakes up to handle bluetooth events. Add support for Core Bluetooth background execution modes by adding the UIBackgroundModes key in the Info.plist file of your project. You can add this key in the IDE by using its menu: File > Project > Options > Version Info:

Click the last key listed.
Press down arrow key to create a new key.
Introduce the key UIBackgroundModes and value bluetooth-central.

Try BeaconFence Today for Free

To use BeaconFence, you need to be a current RAD Studio XE8 Update Subscription customer. Launch the GetIt Package Manager in RAD Studio XE8 to request a free “Pluto” license. Use GetIt to install the BeaconFence components and runtime library. You can build and deploy iOS, Android and Mac OSX applications using BeaconFence with support of up to 3 beacons, for 1 location (building size of up to 1,500 sq ft / 150 sq meters) and 1 application. For additional development and deployment capabilities, contact Embarcadero Sales and Reselling Partners to upgrade your BeaconFence plan.
Additional Resources
BeaconFence product information

BeaconFence product page –
BeaconFence press release –

Beacons, Beacon Fencing, and the Internet of Things –
Building Proximity Aware Applications using Beacons in RAD Studio XE8 –
What to do with beacons before you code –
Technical Skill Sprint Replay highlighting Beacon Support in XE8 –
News articles about companies and locations that are using Beacons

Macys –
Marriott –
Duane Reade –
Lord and Taylor –
London’s Regent Street –
KLM Schiphol Airport –
Amsterdam Beacon Mile –
San Francisco 49’ers Levi Stadium –

Shop and Manufacturer sites where you can purchase beacons
We have tested ur software with a number of proximity beacons including:

EM Microelectronic
Radius Networks

You can find proximity beacons at your favorite online and physical electronics stores. You can also search for proximity beacons on Amazon. The “Hitchhikers Guide to iBeacon Hardware: A Comprehensive Report by Aislelabs” (May 2015) lists 26 iBeacon hardware vendors. Another good source for proximity lists is’s “Guide to iBeacon Hardware”.
[DownloadButton Product=’RAD’ Caption=’Get Started Now, Download the RAD Studio XE8 trial’]
Share This | Email this page to a friend

Comments are closed.