How to synchronize GraphQL changes from Appsync to Android using amplify? - android

I migrated a flutter native plugin for appsync to amplify.
Now I wonder how to generate code in the android part of my flutter project after updating the GraphQL in the appsync console.
Initially i used:
amplify init
amplify add api
amplify add codegen --apiId <MY-API-ID>
this worked like a charm.
However when I want to generate updated code using
amplify api update
I get the reply
The selected resource is not managed using AWS Cloudformation. Please use the AWS AppSync Console to make updates to your API - de.sistar.fcsp_rad
So I guess I did not understand the whole workflow. How do I update my android client project after updating the GraphQL in the AWS Appsync Console?

Run amplify codegen statements to regenerate the queries and such, then kick off a Gradle build again.
https://aws-amplify.github.io/docs/cli/codegen#amplify-codegen-statements-

Related

Using AWS Amplify for android for Auth without connecting to AWS (amplify cli)

I am trying to integrate AWS Cognito to an existing android project. All resources lead me to use Amplify. I need only Amplify Auth.
With a js web app I managed to setup amplify Auth manually without CLI using Is it possible to use the amplify framework without using the cli?
While trying to set it up for Android all documentation asks to run amplify init which would require access to AWS through access key/ profile.
Even Manual Setup Instructions, depend on files created with amplify init
Any direction on how to create the files manually or configure Amplify.auth without the files would be greatly appreciated.

Updating deprecated AWS Amplify setup with the latest Amplify setup

my current Android project, which was just handed over to me, used a depricated AWS Amplify setup. I found this documentation and checked it against the code.
https://aws.amazon.com/blogs/mobile/building-an-android-app-with-aws-amplify-part-1/
It says that "This post has been deprecated. Instead, please see the new Amplify Android Getting Started tutorial to learn how to build Android mobile applications using AWS Amplify." and instead points me to this. https://docs.amplify.aws/start/q/integration/android
Can you point me to the right direction on how can I safely migrate the old AWS Amplify setup of my Android project to the new setup.
Thank you!
By the way I am using Android Studio.

Is there a way to configure amplify CLI with out AdministratorAccess will it work (for a android project)?

I am working on a POC where I am trying to use AWS resources like S3, pinpoint, etc in a mobile Android project.
As per AWS latest recommendation i am using Amplify CLI framework in my Android project to integrate Android with my AWS services.
For this as per the doc - https://docs.amplify.aws/lib/project-setup/prereq/q/platform/android#option-2-follow-the-instructions I raised a request to my AWS admin team to create a IAM account with AdministratorAccess, but they refused the request for various reasons.
Can I achive this is any other way - is there any other way to configure amplify CLI with out AdministratorAccess and will it work?
Step mentioned in doc - "Create a user with AdministratorAccess to your account to provision AWS resources for you like AppSync, Cognito etc."
Note - I tried skipping this part and just providing a access key and secret key of account(which dosent have AdministratorAccess, but Amplify.configure(getApplicationContext()); line failed in my android app without any error/exception -probably Auth error?)

How to add app in current project using Firebase Cli

Hi i am writing a script which created apk dynamically from scripts as i have package name manually on firebase Console for the apk which are created from my system.Can any body suggest how to add app dynamically in my project using CLI
There are currently no CLIs or tools for adding an app programmatically to a Firebase project. However, there is new REST API for creating and modifying projects and apps within it. You will need to learn the Firebase Management API, which is in beta. To create a new Android app in the project, you will need to call the androidApps endpoint.

App engine cloud endpoints backend and android in the same maven project

Can I create app engine cloud endpoints backend project for my android application, so that I can manage the server and client library code in the same maven project?
Currently I have an android project in android studio, but I want to add a cloud endpoints backend to it. Dont want to manage 2 separate projects in git for these.
You can add the cloud backend using Android Studio itself. It is quiet straightforward!You need to add App Engine first to your package and then generate end points. I have tried it and it works perfectly fine.

Categories

Resources