-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
Description:
When a user logs out and logs back into the app, attempting to create syncs with the same names fails with the error:
com.salesforce.androidsdk.mobilesync.manager.SyncManager$MobileSyncException: Failed to create sync down: there is already a sync with name: [SyncName]
Expected Behavior:
- Sync definitions should be cleared/cleaned up during logout
- OR SyncManager should handle re-registration of syncs with same names after re-login
- OR Provide a clean API to reset sync state for a new user session
Actual Behavior:
Old sync definitions persist in SmartStore's synces soup across user sessions, causing conflicts when trying to create new syncs with identical names.
Reproduction Steps:
- Login as User A
- Create syncs (e.g., VisitSyncDown, NotificationSyncDown)
- Logout
- Login as User B (or same user)
- Attempt to create syncs with same names
- Error occurs
Environment:
- React Native Salesforce Mobile SDK: 13.1.0
Metadata
Metadata
Assignees
Labels
No labels