Scan For iBeacons. This app demonstrates how to scan for iBeacons.
Run this example in Evothings Viewer, or build a Cordova app with the plugin cordova-plugin-ibeacon. iOS 7 or Android device with support for Bluetooth 4.0 and Android 4.3 or higher required.
You can browse the source code for this example at the Evothings GitHub repository
The file index.html is the main HTML file of the app.
In file app.js you will find the JavaScript code for the app. Note that you need to add your own manufacturer UUIDs to the list in this file (see code around line 50) for the app to detect your iBeacon(s).
Run this example in Evothings Viewer on Android or iOS.
Optionally you can build a stand-alone native app using Cordova. You then need to include the Cordova plugin com.unarin.cordova.beacon. For further details see the Cordova build guide.
An iOS device (iOS 7 or 8) or an Android device with support for Bluetooth 4.0 (which includes BLE) is required. For Android version 4.3 or later is needed.
You also at least one iBeacon device you can work with. Note that you need to add your manufacturer UUID(s) to file app.js for the app to detect your iBeacon(s).
Follow these steps to get started with this example: