Giter VIP home page Giter VIP logo

aws-mobile-android-notes-tutorial's Introduction

AWS Mobile Android Kotlin Notes

The AWS Mobile Notes Tutorial code for Android / Java. You can start the tutorial by looking in the tutorial directory

License Summary

This sample code is made available under a modified MIT license. See the LICENSE file.

aws-mobile-android-notes-tutorial's People

Contributors

adrianhall avatar brianjerardi avatar hyandell avatar rockarts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aws-mobile-android-notes-tutorial's Issues

Crash on remote save - NoSQL Data step

I'm getting an exception after the configuration of the provider to save the notes in the online NoSQL Db.
The provider is defined as described in the tutorial and declared in the AndroidManifest.xml file

java.lang.SecurityException: Failed to find provider null for user 0; expected to find a valid ContentProvider for this authority
at android.os.Parcel.readException(Parcel.java:1942)
at android.os.Parcel.readException(Parcel.java:1888)
at android.content.IContentService$Stub$Proxy.notifyChange(IContentService.java:801)
at android.content.ContentResolver.notifyChange(ContentResolver.java:2046)
at android.content.ContentResolver.notifyChange(ContentResolver.java:1997)
at android.content.ContentResolver.notifyChange(ContentResolver.java:1967)
at com.amazonaws.mobile.samples.mynotes.data.NotesContentProvider.notifyAllListeners(NotesContentProvider.java:291)
at com.amazonaws.mobile.samples.mynotes.data.NotesContentProvider.insert(NotesContentProvider.java:217)
at android.content.ContentProvider$Transport.insert(ContentProvider.java:267)
at android.content.ContentResolver.insert(ContentResolver.java:1539)
at android.content.AsyncQueryHandler$WorkerHandler.handleMessage(AsyncQueryHandler.java:96)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.os.HandlerThread.run(HandlerThread.java:65)

Update for API 26 and gradle 4.0.1

The latest Android Studio is 3.0.1, with Gradle 4.0.1, and API 26 being standard. Need to update the project to accomodate these changes.

Session events and demographics do not get propagated

After applying the steps for adding analytics (as per instructions in analytics.md), the session events and demographics do not get propagated in AWS Analytics/Usage view. The Android Studio run window shows the following exception:

E/EventRecorder: AmazonServiceException occured during send of put event
com.amazonaws.AmazonServiceException: User: arn:aws:sts::[999999999999]:assumed-role/amplify-awsmobileandroidnote-dev-[999999]-authRole/CognitoIdentityCredentials is not authorized to perform: mobileanalytics:PutEvents on resource: arn:aws:mobileanalytics:us-east-1:[999999999999]:* (Service: AmazonPinpointAnalytics; Status Code: 403; Error Code: AccessDeniedException; Request ID: cadced78-04ab-403d-9ee7-5d9f8b002240)
at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:730)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:405)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:212)
at com.amazonaws.services.pinpointanalytics.AmazonPinpointAnalyticsClient.invoke(AmazonPinpointAnalyticsClient.java:375)
at com.amazonaws.services.pinpointanalytics.AmazonPinpointAnalyticsClient.putEvents(AmazonPinpointAnalyticsClient.java:321)
at com.amazonaws.mobileconnectors.pinpoint.internal.event.EventRecorder.submitEvents(EventRecorder.java:317)
at com.amazonaws.mobileconnectors.pinpoint.internal.event.EventRecorder.processEvents(EventRecorder.java:275)
at com.amazonaws.mobileconnectors.pinpoint.internal.event.EventRecorder$1.run(EventRecorder.java:205)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
W/EventRecorder: Unable to successfully deliver events to server. Events will be saved, error likely recoverable. Response status code 403 , response error code AccessDeniedExceptionUser: arn:aws:sts::[999999999999]:assumed-role/amplify-awsmobileandroidnote-dev-[999999]-authRole/CognitoIdentityCredentials is not authorized to perform: mobileanalytics:PutEvents on resource: arn:aws:mobileanalytics:us-east-1:[999999999999]:* (Service: AmazonPinpointAnalytics; Status Code: 403; Error Code: AccessDeniedException; Request ID: cadced78-04ab-403d-9ee7-5d9f8b002240)
W/EventRecorder: Received an error response: User: arn:aws:sts::[999999999999]:assumed-role/amplify-awsmobileandroidnote-dev-[999999]-authRole/CognitoIdentityCredentials is not authorized to perform: mobileanalytics:PutEvents on resource: arn:aws:mobileanalytics:us-east-1:[999999999999]:* (Service: AmazonPinpointAnalytics; Status Code: 403; Error Code: AccessDeniedException; Request ID: cadced78-04ab-403d-9ee7-5d9f8b002240)

Error

I keep getting Execution failed for task:app:mergeDebugResources

The classes for the input, mutation, and response data not generated

Hi there, hope this repo is still under watch. I've been trying to learn AppSync to build an app with a serverless backend to make API calls. But sadly, I am not able to finish the most pivotal part of the tutorial which is the actual serverless backend with AppSync.

My bet at the moment is that the amplify codegen process might have not run at all, since no classes were generated as per the tutorial. Attached below is a picture of my AWSDataService class that has all the errors. Do let me know if there are further resources you need.
Annotation 2019-10-30 232259

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.