- Please use the latest version of Xcode and Cocoapods.
- Run
pod install
and open the SidewalkSampleApp.xcworkspace project file with Xcode. - Highlight SidewalkSampleApp, select Signing & Capabilities, and use your team (or create a free personal one) & any available unique bundle identifier. You should probably follow your team's naming convention.
- Add Login with Amazon dependency.
a. Follow the Register for Login with Amazon flow documented on developer.amazon.com to obtain an API Key for your bundle ID and security profile.
b. Download the Login with Amazon SDK from developer.amazon.com, and place the framework file under
<project root>/Frameworks/
, so that the file path is<project root>/Frameworks/LoginWithAmazon.framework
. c. In Xcode, open Info.plist in the SidewalkSampleApp. Replace the APIKey entry with the key you obtained in step 4. - Add OpenSSL dependency. a. Use your favorite way of importing OpenSSL.
- Run the app on an iPhone. The simulator will not have bluetooth capabilities.
- The Amazon Sidewalk Sample App provides scanning, registration, deregistration, and secure connect capabilities.
- Scanning will start automatically.
- Click on Menu -> Login to authenticate, use your Amazon test account.
- Long press a found device in the UNREGISTERED DEVICES section, and click register to go through the Amazon Sidewalk registration process.
- A spinner indicates the registration progress. There will be a pop up with an error or success once the process completes.
- Long press a found device in any section, and click Secure Connect to initiate a secure connection. Upon success, this will take you to the secure connection page. You can also register with a secure connection (preferred if you already have one), which is showcased here.
- Menu -> Deregister allows you to deregister a device with the Sidewalk Manufacturing Serial Number(
SMSN
) of the device. - Logs may be viewed in Xcode Debugger as well as the Device Console. In Xcode, go to Window → Devices and Simulators → Click on your phone in right panel → Open Console. Search for "process:SidewalkSampleApp".
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.