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

Is it possible to use the AWS SDK and Amplify at the same time? #5505

Closed
tmccaffrey914 opened this issue Feb 28, 2025 · 5 comments
Closed

Is it possible to use the AWS SDK and Amplify at the same time? #5505

tmccaffrey914 opened this issue Feb 28, 2025 · 5 comments
Labels
question General question

Comments

@tmccaffrey914
Copy link

State your question
Hi,

Is it possible to use the AWS SDK and Amplify at the same time? I am using Amplify Authenticator but the rest of my backend is separate from Amplify. Now I want to register for Push notifications from SNS & for that I need to be able to import the AWSCore & SNS packages. My issue is that there is a conflict when I try to install the AWS SDK through Swift Package Manager, it seems like Amplify and AWS SDK are incompatible. Is there any workaround for this?

Which AWS Services are you utilizing?
Cognito, SNS, S3, Dynamo, Lambda, API Gateway

Provide code snippets (if applicable)

Environment(please complete the following information):

  • Amplify 2.45.4
  • AmplifyUIAuthenticator 1.2.3
  • Swift Package Manager
  • Swift Version : 5

If you need help with understanding how to implement something in particular then we suggest that you first look into our developer guide. You can also simplify your process of creating an application, as well as the associated backend setup by using the Amplify CLI.

@github-actions github-actions bot added pending-triage Issue is pending triage pending-maintainer-response Issue is pending response from an Amplify team member labels Feb 28, 2025
@thisisabhash thisisabhash added the question General question label Feb 28, 2025
@thisisabhash
Copy link
Member

Thank you for posting this. Yes, there would be conflict between the two libraries. We are not aware of customers reporting workarounds for using both together. Amplify Swift is the recommended solution to develop apps. Have you tried exploring push notifications on Amplify?
https://docs.amplify.aws/gen1/swift/build-a-backend/push-notifications/set-up-push-notifications/

@github-actions github-actions bot removed the pending-maintainer-response Issue is pending response from an Amplify team member label Feb 28, 2025
@thisisabhash thisisabhash removed the pending-triage Issue is pending triage label Feb 28, 2025
@tmccaffrey914
Copy link
Author

Hi @thisisabhash, I've had a quick look at this yes - but it is this for pinpoint notifications or does it work with SNS as well? 🤔

@github-actions github-actions bot added the pending-maintainer-response Issue is pending response from an Amplify team member label Feb 28, 2025
@thisisabhash
Copy link
Member

It is for Pinpoint notifications. Have you explored using aws-sdk-swift - as it is one of the dependencies of Amplify.

Links:
https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/swift/example_code/sns
https://github.com/awslabs/aws-sdk-swift
https://docs.aws.amazon.com/sdk-for-swift/latest/developer-guide/home.html

@github-actions github-actions bot removed the pending-maintainer-response Issue is pending response from an Amplify team member label Mar 3, 2025
@tmccaffrey914
Copy link
Author

Okay cool, thanks for this info

@github-actions github-actions bot added the pending-maintainer-response Issue is pending response from an Amplify team member label Mar 5, 2025
@github-actions github-actions bot removed the pending-maintainer-response Issue is pending response from an Amplify team member label Mar 5, 2025
Copy link

github-actions bot commented Mar 5, 2025

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question General question
Projects
None yet
Development

No branches or pull requests

2 participants