/Pulse-Places

Proximity app for Pulse Platform.

Primary LanguageTypeScript

Pulse Platform app

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.

Prerequisites

The following libraries are required:

Installation

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.

Install required NPM packages

$ npm install

Add Ionic dirs

$ ionic serve

Add plugins

  • $ 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

Cordova Geofence Plugin

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" />

iOS

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

Add platforms

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.