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

Re-Sync items which are failed due to permission related problems. #3167

Open
swaroop-at-dockare opened this issue Aug 23, 2023 · 2 comments
Labels
datastore Issues related to the DataStore category pending-community-response Issue is pending response from the issue requestor question General question

Comments

@swaroop-at-dockare
Copy link

Issue Description:

I am implementing a chat application. I am using AWSCognitoAuthPlugin for authentication in conjunction with dynamic group permission policy. I am creating a chat group and binding them with Cognito users to them dynamically from my backend. Which works fine when the user is online. Our application has offline capabilities. So the user can create a chat group offline and start sending the message. Amplify stores the data offline. But when the application starts to sync the data before the group is added to the AWS Cognito pool, it fails the sync for those particular messages as the user is not added to that group yet. But once the user is added to the group, the application starts working fine for the next messages. But the messages which are failed to sync are stored only on the local device. They are not synced again if all the next messages are synced. Is there any way I can re-sync these failed items or prevent the sync until the group creation process?

Amplify Framework Version
2.15.2

Amplify Categories
Auth, Datastore

Dependency Manager
Swift Package Manager

Swift Version
5.8.1

Platform
iOS

@ruisebas ruisebas added datastore Issues related to the DataStore category question General question labels Aug 23, 2023
@atierian atierian added the follow up Requires follow up from maintainers label Sep 15, 2023
@harsh62
Copy link
Member

harsh62 commented Oct 3, 2023

Apologies for the delayed response. Our team will look into the issue and provide an update.

@atierian atierian added the requires attention Follow up needed for more than 10 days label Dec 6, 2023
@harsh62
Copy link
Member

harsh62 commented Jan 19, 2024

@swaroop-at-dockare Sorry for the delay on our side. Is this still an issue that you are facing?
If yes, would you be able to share the schemas being used? Also would you be able to give some code examples of how you are creating groups when online and offline?

Also if you can create a diagnostic report and share the identifier, I can try to recreate this issue locally in my environment.
amplify diagnose --send-report

Thank you for your patience.

@harsh62 harsh62 added pending-community-response Issue is pending response from the issue requestor and removed follow up Requires follow up from maintainers requires attention Follow up needed for more than 10 days labels Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datastore Issues related to the DataStore category pending-community-response Issue is pending response from the issue requestor question General question
Projects
None yet
Development

No branches or pull requests

4 participants