Login with Amazon Getting Started Guide for iOS Version 2.1.2
Document viewer
24 Pages · 1.2 MB · Amazon official PDF
Troubleshooting & error codes
Extracted diagnostic sections from the manufacturer manual
Login with Amazon
Login with Amazon Getting Started Guide for iOS, version 8. Implement requestDidFail: for your AMZNGetProfileDelegate. requestDidFail: includes an APIError object containing details about the error. showLogInPage is a hypothetical method that would reset the main view controller to show the Login with Amazon button.
Implement requestDidFail: for your AMZNAuthorizeUserDelegate.
Implement application:openURL:sourceApplication:annotation: in the class in your project that handles the UIApplicationDelegate protocol (by default this will be the AppDelegate class in your project). When the app presents the Amazon login page, and the user completes login, it will redirect to the app using the URL Scheme the app registered earlier. That redirect is passed to application:openURL:sourceApplication:annotation:, which returns YES if the URL was successfully handled. handleOpenURL:sourceApplication: is an SDK library function that will handle Login with Amazon redirect URLs for you. If handleOpenURL:sourceApplication: returns YES, then the URL was handled.
// If error code = kAIApplicationNotAuthorized, // allow user to log in again. if(errorResponse.error.code == kAIApplicationNotAuthorized) { // Show authorize user button.
[parentViewController showLogInPage]; else { // Handle other errors [[[[UIAlertView alloc] initWithTitle:@"" message:[NSString stringWithFormat:@"Error occurred with message: %@", errorResponse.error.message] delegate:nil cancelButtonTitle:@"OK"otherButtonTitles:nil] autorelease] show];
[[[[UIAlertView alloc] initWithTitle:@"" message:[NSString stringWithFormat:@"User authorization failed with message: %@", errorResponse.error.message] delegate:nil cancelButtonTitle:@"OK"otherButtonTitles:nil] autorelease] show]; Login with Amazon Login with Amazon Getting Started Guide for iOS, version NOTE: This method is deprecated in iOS 9 but should be included in your project to maintain support for users on older platforms. For more information on application:openURL:sourceApplication:annotation:, see UIApplicationDelegate Protocol Reference on developer.apple.com.
Manual overview & contents
Amazon · 24 PagesOfficial 24-page Amazon documentation (1.2 MB PDF). Key sections include Getting Started for iOS, Installing Xcode, Run the Sample App, Registering with Login with Amazon, Register Your Login with Amazon Application.
Login with Amazon Getting Started Guide for iOS, version Login with Amazon: Getting Started Guide for iOS Amazon and the Amazon logo are trademarks of Amazon.com, Inc. All other trademarks not owned by Amazon are the property of their respective owners. In this guide we will show you how to add Login with Amazon to your iOS app. After completing this guide you should have a working Login with Amazon button in your app to allow users to log in with their Amazon credentials. The Login with Amazon SDK for iOS is provided by Amazon to help you add Login with Amazon to your iOS application.
Sections inside this manual
Page numbers for quick lookup in the PDF- Getting Started for iOSp. 4
- Installing Xcodep. 5
- Run the Sample Appp. 5
- Registering with Login with Amazonp. 6
- Register Your Login with Amazon Applicationp. 6
- Retrieve an iOS API Keyp. 8
- Creating a Login with Amazon Projectp. 10
- Create a New Login with Amazon Projectp. 10
- Install the Login with Amazon Libraryp. 10
Extracted manual text
Login with Amazon
You can install Xcode from the Mac App Store. For more information, see Xcode: What's New on developer.apple.com.
After Xcode is installed, you can Install the Login with Amazon SDK for iOS and Run the Sample App, as described below.
Install the Login with Amazon SDK for iOS
The Login with Amazon SDK for iOS comes in two packages. The first contains the iOS library and supporting documentation. The second contains a sample application that allows a user to log in and view their profile data.
If you have not yet installed Xcode, see the instructions in the Install Xcode section above.
Download LoginWithAmazonSDKForiOS.zip and extract the files to a directory on your hard drive.
You should see a LoginWithAmazon.framework directory. This contains the Login with Amazon library.
At the top level of the zip is a LoginWithAmazon.docset directory. This contains the API documentation.
See Install the Login with Amazon Library for instructions on how to add the library to an iOS project.
When the Login with Amazon SDK for iOS is installed, you can Create a New Login with Amazon Project (p. 9) after Registering with Login with Amazon (p.
Run the Sample App
To run the sample application, open the sample in Xcode.
Download SampleLoginWithAmazonAppForiOS.zip and copy the SampleLoginWithAmazonAppForiOS directory to your Documents folder.
If the Welcome to Xcode dialog pops up, click Open Other. Otherwise, from the main menu, click File and select Open.
Select the Documents folder, and select
SampleLoginWithAmazonAppForiOS/LoginWithAmazonSample/
The sample project should now load. When it is finished, choose Product from the main menu and select Run.
Frequently asked questions
What topics are covered in the Login with Amazon Getting Started Guide for iOS Version 2.1.2?
This 24-page manual covers: Getting Started for iOS, Installing Xcode, Install the Login with Amazon SDK for iOS, Run the Sample App, Registering with Login with Amazon, Register Your Login with Amazon Application, Add an iOS App to a Security Profile, iOS Bundle ID and API Keys.
Does this manual include troubleshooting or error codes?
Yes, troubleshooting and fault information is included inside the manual.
More manuals from Amazon
View all →Amazon Login with Amazon Getting Started Guide for Websites
View or download the Amazon Login with Amazon Getting Started Guide for Websites (20-page PDF). Covers Introduction, Install iOS Developer Tools.
Login with Amazon Getting Started Guide for Android
View or download the Login with Amazon Getting Started Guide for Android (25-page PDF). Covers Getting Started for Android.
Login with Amazon Getting Started Guide for Android apps
View or download the Login with Amazon Getting Started Guide for Android apps (11-page PDF). Covers Customer Experience Overview for Android/Fire apps.
Login with Amazon Getting Started Guide for iOS apps
View or download the Login with Amazon Getting Started Guide for iOS apps (11-page PDF). Covers Customer Experience Overview for iOS apps, Introduction.
Alexa and MyBMW – Getting Started Guide
View or download the Alexa and MyBMW – Getting Started Guide (1-page PDF). Covers Alexa Built-in Quick Start Guide for BMW, Start Using Alexa in Your BMW.
Alexa and MyBMW – Getting Started Guide
View or download the Alexa and MyBMW – Getting Started Guide (1-page PDF). Covers Alexa Built-in Quick Start Guide for BMW, Start Using Alexa in Your BMW.