Giter VIP home page Giter VIP logo

amazon-sidewalk-ios-samples's Introduction

amazon-sidewalk-ios-samples

Building the Amazon Sidewalk Sample App

  1. Please use the latest version of Xcode and Cocoapods.
  2. Run pod install and open the SidewalkSampleApp.xcworkspace project file with Xcode.
  3. 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.
  4. 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.
  5. Add OpenSSL dependency. a. Use your favorite way of importing OpenSSL.
  6. Run the app on an iPhone. The simulator will not have bluetooth capabilities.

Testing with the Amazon Sidewalk Sample App

  1. The Amazon Sidewalk Sample App provides scanning, registration, deregistration, and secure connect capabilities.
  2. Scanning will start automatically.
  3. Click on Menu -> Login to authenticate, use your Amazon test account.
  4. Long press a found device in the UNREGISTERED DEVICES section, and click register to go through the Amazon Sidewalk registration process.
  5. A spinner indicates the registration progress. There will be a pop up with an error or success once the process completes.
  6. 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.
  7. Menu -> Deregister allows you to deregister a device with the Sidewalk Manufacturing Serial Number(SMSN) of the device.
  8. 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".

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

amazon-sidewalk-ios-samples's People

Contributors

amazon-auto avatar litimsa avatar ywangire avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.