Sample Apps

The easiest way to get started is by looking at the sample apps.

  • SampleAppSwift - Demonstrates a basic integration with the core framework.
  • SampleAppObjC - Equivalent to SampleAppSwift, but written in Objective-C.

To add the core framework as an embedded binary and run the sample app:

  1. Open a sample app project in Xcode.
  2. In the tree on the left, select the root node (e.g., SampleAppSwift).
  3. In the content panel on the right, select the target.
  4. Select General.
  5. Scroll to the Embedded Binaries section and click +.
  6. Select Add Other....
  7. Open FTMCore.framework, located in the root folder of the SDK.
  8. Check Copy items if needed, and select Create groups.

The sample apps only work properly when run on a device because Bluetooth functionality is not available in the simulator. Modify the project as needed to add a team or to configure signing otherwise.

To run the sample apps, you also need to have a valid app key and secret. These values are passed into the FTMSession class. Please visit https://manage.extremelocation.com to request an app key and secret.