Developer Partner Community

  • November 4, 2015

Create the MAF Client Application to Monitor and Detect Beacons

Juergen Kress
PaaS & Middleware Partner Adoption

clip_image002 This tutorial walks you through developing an Oracle Mobile Application Framework (MAF) application that monitors and detects iBeacons on both iOS and Android devices. You will learn how to develop an iOS app that advertises an iBeacon identifier. During the lab you will also learn how to develop AMX pages, incorporate 3rd party Cordova plugins, and make practical use of local notifications with MAF apps.
In the first part you create a beacon client MAF application that uses a Cordova plugin as a bridge between the device’s bluetooth capabilities and the MAF application. Because the Cordova plugin’s API is written in JavaScript, you include JavaScript to communicate between the MAF application and the plugin. You'll also include a local notification so that if the application is in the background or the device is asleep, the user will become aware that the device has entered a beacon region.
In the second part of the tutorial, you create another application that acts as a beacon that will advertise its location. To test the applications from this tutorial, you must deploy each application to a separate device that supports Bluetooth Low Energy. One device will act as the beacon and advertise, while the other device will use an application to monitor and detect the advertisements. The device running the advertising beacon must be an iOS device. The device running the client application may either be an Android or iOS device. Note that the device running the advertising application must be an iOS device. This tutorial deploys and tests applications on iOS devices.


Download Files

In order to complete this tutorial you must have JDeveloper 12.1.3 and MAF 2.1.1 installed. Then download a file archive and unzip it into a temporary place on your machine. This archive contains code and the Cordova plugin you will need during the tutorial. The file should be saved and unzipped in a temporary directory located in the same hard drive partition as your JDeveloper/mywork directory. The zip file also contains solution applications.


Get the tutorial here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Join the discussion

Comments ( 2 )
  • Nikhil Misra Sunday, November 22, 2015

    Hi Juergen,

    The tutorial is taking to a WordPress login. Can you please give the correct link

    Nikhil Misra

  • guest Sunday, November 22, 2015

    Hi Nikhil

    thanks for the tip, link is updated.
    Regards Jürgen Kress

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.