Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How could I use mutiple Amplify in single project? #1962

Open
1 task done
mengshuaishuai opened this issue Sep 19, 2022 · 3 comments
Open
1 task done

How could I use mutiple Amplify in single project? #1962

mengshuaishuai opened this issue Sep 19, 2022 · 3 comments
Labels
datastore DataStore category/plugins feature-request Request a new feature

Comments

@mengshuaishuai
Copy link

Before opening, please confirm:

Language and Async Model

Java, Kotlin

Amplify Categories

GraphQL API, DataStore

Gradle script dependencies

dependencies {

implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.4.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

//  Amplify core dependency
api 'com.amplifyframework:aws-datastore:1.37.3'
api 'com.amplifyframework:core:1.37.3'
api 'com.amplifyframework:aws-api:1.37.3'

}

Environment information


Gradle 7.3.3

Build time: 2021-12-22 12:37:54 UTC
Revision: 6f556c80f945dc54b50e0be633da6c62dbe8dc71

Kotlin: 1.5.31
Groovy: 3.0.9
Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM: 1.8.0_311 (Oracle Corporation 25.311-b11)
OS: Mac OS X 10.12.6 x86_64

Please include any relevant guides or documentation you're referencing

No response

Describe the feature request

I got two Amplify app with different models, I want to use both of them in my Android app, how should I do?

Initialization steps (if applicable)

No response

Code Snippet

// Put your code below this line.

amplifyconfiguration.json

No response

GraphQL Schema

// Put your schema below this line

Additional information and screenshots

No response

@eeatonaws eeatonaws added datastore DataStore category/plugins question General question labels Sep 26, 2022
@AnilMaktala AnilMaktala added pending-community-response Issue is pending response from the issue requestor and removed pending-community-response Issue is pending response from the issue requestor labels Oct 10, 2022
@manaswi223
Copy link

manaswi223 commented Oct 13, 2022

Hi @mengshuaishuai 👋🏼 I'm having problems inferring your question here, could you be more specific about "multiple Amplify" ? Are you looking answers for multiple backends for your single Amplify project ?
If yes, please refer to this comment here: aws-amplify/learn#293 (comment)
Thank you!

@AnilMaktala AnilMaktala added the pending-community-response Issue is pending response from the issue requestor label Oct 13, 2022
@rnrnstar2
Copy link

Hi
I am also interested in this issue.

When building a fairly large amplify project, you may want to manage separate backends for each feature.

One problem is that cloudformation template size is limited to 1MB.

Therefore, I would like to seamlessly access another backend from a frontend app that cooperates with each backend.

Since the application is developed in monorepo, it is an image that each workspace has an amplify backend directory.

I would like to know how to achieve this.

@tjleing tjleing added the feature-request Request a new feature label Dec 15, 2022
@tjleing
Copy link
Contributor

tjleing commented Dec 15, 2022

Hello @rnrnstar2 -- we do not currently support this feature. It may be possible to use the workaround linked above aws-amplify/learn#293 (comment), as the limitation against using cookies seems to be applicable to JS-based solutions such as React Native. On Android applications of course you can use something like SharedPreferences to communicate between the various backends. However, you may run into other issues when attempting to do so.

We can take a feature request to provide a more comprehensive approach to this multiple-backend use case, but unfortunately cannot share any timeline details.

@eeatonaws eeatonaws removed the pending-community-response Issue is pending response from the issue requestor label Mar 24, 2023
@gpanshu gpanshu removed the question General question label Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datastore DataStore category/plugins feature-request Request a new feature
Projects
None yet
Development

No branches or pull requests

7 participants