Skip to content

Commit 82c69fa

Browse files
authored
Fix error in api key generation steps
1 parent 3d1a267 commit 82c69fa

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,13 @@ We integrated the Login with Amazon SDK in our Unity project by creating a wrapp
6868

6969
4. In `gradleTemplate.properties`, add `android.useAndroidX=true`.
7070

71-
5. In the `Assets` folder, create an `assets` folder and insert your API key as the only data in the `api_key.txt` file generated in Step 2.
71+
5. Create a new [Security Profile](https://developer.amazon.com/docs/login-with-amazon/register-android.html#create-a-new-security-profile).
7272

73-
6. In `mainTemplate.gradle`, add the following code snippet at the very end of the file:
73+
6. Create your app in the Amazon Developer portal, and in 'New app Submission/Upload your app', you'll get an Appstore Certificate Hashes link. On clicking that link, you'll get the MD5 and SHA-256 of the Amazon signature with which your app will be signed when submitted. Use these hash values while adding [Android Settings to your Security Profile](https://developer.amazon.com/docs/login-with-amazon/register-android.html#add-android-settings) to get the API key.
74+
75+
7. In the `Assets` folder, create an `assets` folder and insert your API key as the only data in the `api_key.txt`
76+
77+
8. In `mainTemplate.gradle`, add the following code snippet at the very end of the file:
7478
```groovy
7579
dependencies {
7680
implementation 'androidx.appcompat:appcompat:1.0.0'
@@ -84,12 +88,12 @@ We integrated the Login with Amazon SDK in our Unity project by creating a wrapp
8488
preBuild.dependsOn(copyAmazon)
8589
```
8690

87-
7. In the folder created in Step 1, add three files that create a bridge between Login with Amazon Java APIs and Unity C# script. These code snippets can be refactored as per your requirements:
91+
9. In the folder created in Step 1, add three files that create a bridge between Login with Amazon Java APIs and Unity C# script. These code snippets can be refactored as per your requirements:
8892
- `UnityPlayerProxyActivity.java`: Create a custom Unity activity following the [Unity documentation](https://docs.unity3d.com/Manual/android-custom-activity.html) and integrate Login with Amazon as documented in the [official guide](https://developer.amazon.com/docs/login-with-amazon/use-sdk-android.html).
8993
- `LwaAuthManager.cs`: C# file to call the Java API for execution in Unity.
9094
- `UnityAuthListenerCallbackInterface.java`: Interface to handle authentication callbacks.
9195

92-
8. In `AndroidManifest.xml`, make the following changes:
96+
10. In `AndroidManifest.xml`, make the following changes:
9397
- Replace the application's activity `android:name` with `<packageName>.UnityPlayerProxyActivity`.
9498
- Add the [WorkflowActivity](https://developer.amazon.com/docs/login-with-amazon/create-android-project.html#add-a-workflowactivity-to-your-project). Don't forget to replace `${applicationId}` with your package name for this app.
9599
- Add network permissions:

0 commit comments

Comments
 (0)