- Open Amazon Sidewalk Sample App project with Android Studio.
- 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.
- Replace the content in
sample/src/main/assets/api_key.txt
with the API Key. - Download the Login with Amazon SDK from developer.amazon.com
- Unzip LoginWithAmazon_Android.zip and copy
login-with-amazon-sdk.jar
fromLoginWithAmazon-{latest-version}/lib/
tosample/libs/
- Run the app on an Android device, the emulator shouldn't have bluetooth capabilities.
- The Amazon Sidewalk Sample App provides scanning, registration, deregistration, and secure connect capabilities.
- Click on Menu -> Sign In to authenticate, use your Amazon test account.
- Scanning is triggered automatically. This will only discover Amazon Sidewalk devices in OOBE mode or registered under current logged-in account.
- For each device in the UNREGISTERED DEVICES section, it shows the device name, Sidewalk Manufacturing Serial Number (SMSN), and RSSI.
- For each device in the REGISTERED DEVICES section, it shows the device name, Sidewalk ID, and RSSI.
- 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.
- 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 by inputting the device's SMSN.
- Logs may be viewed in the Device Console.
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.