nRF5 SDK v15.3.0
Launch App Example

The Launch App Example shows how to use the NFC tag to launch an app on a device that supports NFC and runs Android (4.0 or later) or Windows Phone (8.0 or later). To launch the app, the example application exposes an Android Application Record (AAR) and a Windows LaunchApp record.

When the example application starts, it initializes the NFC tag and generates an NDEF message with an AAR and a Windows LaunchApp record, both constructed to launch the nRF Toolbox app. Then it sets up the NFC library to use the generated message and sense the external NFC field. The only events handled by the application are the NFC events.

The Launch App Example shows the usage of the Launch app message generation module.

You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\nfc\record_launch_app

Note
This application is not power optimized!

Testing

Test the Launch App Example with a smartphone or a tablet with NFC support by performing the following steps:

  1. Compile and program the application.
  2. Touch the NFC antenna with the smartphone or tablet and observe that LED 1 is lit.
  3. Observe that the smartphone/tablet tries to:
    • Launch the nRF Toolbox app if it is installed.
    • Download the nRF Toolbox app from the store if it is not installed.
  4. Move the smartphone/tablet away from the NFC antenna and observe that LED 1 turns off.

Documentation feedback | Developer Zone | Subscribe | Updated