We have a time tracking application that's used by most of our employees on a daily basis, and in the last week or so started noticing odd time entries for a few of our users. After initially assuming it was something on their mobile device, this week it has grown to many users across iOS ad Android devices. I spent some time testing today and I believe I have it narrowed down to Offline changes that sync successfully, but don't 'clear' after the sync, so on the next Retool app launch they sync again.
My steps to re-create the problem:
Open the app within Retool Mobile, flip the phone to airplane mode so I can generate an Offline query, perform and action that runs a query. (Offline Manager will now show 1 Change pending)
Kill the Retool mobile app
Turn off Airplane mode, and bring the phone back online
Launch Retool Mobile and Offline Manager will show 1 pending change
Open the application, and the pending change will apply. Continue to use the application normally, and everything seems fine. All items/steps up to this point seem fine, and appear to be working as designed. However...
Kill the Retool mobile app
Re-launch Retool Mobile, and the notice for 1 Pending Change appears again.
Open the app within Retool Mobile, and the Pending Change applies AGAIN.
From there, it appears you can loop through steps 6 - 8 above, and the Pending Change will keep reapplying each time the Retool Mobile app is launched. In our app the change includes a timestamp, so I know it's pushing the initially cached change, and not a new one.
If I manually go into the Offline Manager upon initial launch of the Retool Mobile app, I can select Remove on the pending change, and the process/loop stops. This makes me think the pending changes aren't getting cleared/completed properly, so they continue to re-appear in the Offline Manager.
Anyone seeing similar behavior?
Appreciate any help!
Hi Matt,
I do confirm that i'm also struggling with the same issue, for about 2 or 3 weeks.
The offline queries keep re sync while retool app is reopened.
Apparently this trouble happens on version 3.168.
I've contacted the support team, which id currently dealing with it, so retool is aware of this issue.
Hi @Tess,
We’re experiencing this issue as well, and it’s causing a significant problem on our end with duplicate entries in the database. The synced changes appear to reapply every time the app restarts, even after the initial sync has successfully gone through. This loop only stops if we manually clear the app storage, which is not a sustainable workaround.
Really hoping for a fix soon—thanks to the team for looking into it!
Thanks for checking in. It looks like the bug fix for this is delayed due to another issue affecting mobile users. I will let you know when I have an updated ETA for this bug
The fix is out for Android & iOS (latest version 3.194). Please let me know if you see any issues once confirming you're on the latest version (find the version on Settings->About in the app)