This README outlines the details of collaborating on this application. A short introduction of this app could easily go here. It's based on Nibs and it was modified to communicate with iBeacon.
This project is an example of what you can do with your iBeacon : geolocate your users in an enclosed space and send them messages automatically. This application manages two iBeacons: one send a notification "Welcome to your store !" when you are connected or not; the second send the notification "You've got 1000 points. Discover our fidelity offers !" only when you are connected.
You will need the following things properly installed on your computer.
git clone https://github.com/Sylpheo/nibs-ibeacon.git
- Change into the new directory
npm install
- Make a note of the UUID, Minor, Major and the identifier of your iBeacon and change it into the
client/js/app.js
file. - Change into the client directory
python -m SimpleHTTPServer 8000
- Visit your app at http://localhost:8000.
- The database used is on an online heroku application. It is configured on the
client/js/config.js
file. You can use your own database or use a local database.
- Make sure you have the Android SDK installed in your computer and its location set to the path.
- Make sure you have Xcode installed in your computer.
npm install -g cordova
cordova create nibsibeacon-shell com.nibsibeacon.loyalty Nibs
cd nibsibeacon-shell
rm -rf www
ln -s [path-to-nibs-ibeacon]/client www
cordova plugins add org.apache.cordova.device
cordova plugins add org.apache.cordova.console
cordova plugins add org.apache.cordova.statusbar
cordova plugins add org.apache.cordova.geolocation
cordova plugins add org.apache.cordova.dialogs
cordova plugins add org.apache.cordova.inappbrowser
cordova plugins add org.apache.cordova.camera
cordova plugins add org.apache.cordova.file-transfer
cordova plugins add https://github.com/petermetz/cordova-plugin-ibeacon.git
cordova plugins add https://github.com/katzer/cordova-plugin-local-notifications.git
- Android users:
cordova platforms add android
- iOS users:
cordova platforms add ios
- Android users:
cordova build android
- iOS users:
cordova build ios
Install the built app in a mobile device, start it and enjoy! Make sure your iBeacon is turned on!