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:
- Open a sample app project in Xcode.
- In the tree on the left, select the root node (e.g., SampleAppSwift).
- In the content panel on the right, select the target.
- Select General.
- Scroll to the Embedded Binaries section and click +.
- Select Add Other....
- Open FTMCore.framework, located in the root folder of the SDK.
- 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.