Provide Bluetooth beacon and geofence services to your customers.
This app targets iOS and Android, and uses the Pulse Platform API, https://nowsquare.com/pulse-platform/documentation/v2/API/scenario-boards.
The following libraries are required:
After you've downloaded the project, open the config.xml
in the root and update the name, app id and version. Then, navigate to the root directory with your CLI.
$ npm install
$ ionic serve
$ ionic plugin add cordova-plugin-device
$ ionic plugin add cordova-sqlite-storage
$ ionic plugin add phonegap-plugin-barcodescanner
$ ionic plugin add cordova-plugin-geolocation
$ ionic plugin add cordova-plugin-ibeacon
$ ionic plugin add https://github.com/EddyVerbruggen/cordova-plugin-local-notifications
$ ionic plugin add cordova-plugin-safariviewcontroller
$ ionic plugin add https://github.com/cowbell/cordova-plugin-geofence
The Cordova Geofence Plugin requires some extra settings for iOS. In Xcode set:
Build Settings > Use Legacy Swift Language Version > Yes
And in config.xml:
<preference name="UseLegacySwiftLanguageVersion" value="true" />
Add the following keys to the project's Info.plist:
NSCameraUsageDescription Used to scan QR codes
NSLocationAlwaysUsageDescription Used to provide information based on the device location
NSBluetoothPeripheralUsageDescription Used to receive Bluetooth Beacon signals
For iOS developers, take a look at the Cordova iOS Platform Guide and follow the instructions to install or upgrade X Code, and possibly register for a developer account to start building apps for iOS.
For Android developers, take a look at the Cordova Android Platform Guide and follow the instructions to install the SDK and/or Android Studio to start building apps for Android.