Re-Sync items which are failed due to permission related problems. #3167
Labels
datastore
Issues related to the DataStore category
pending-community-response
Issue is pending response from the issue requestor
question
General question
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
The text was updated successfully, but these errors were encountered: