Hi everyone,
We’re currently developing an AppSheet application focused on warehouse and inventory management, where users request materials and the available stock is updated accordingly.
We understand that AppSheet’s offline capabilities are one of its strengths, and they work great for many of our other business processes. However, in this particular application, we’re looking for the opposite behavior: we’d like to know if it’s possible to make the app behave as if it were strictly online, ensuring users always work with the latest data.
For example:
-
We have 100 pens in stock.
-
User A requests 20, so the stock becomes 80.
-
However, User B hasn’t synchronized yet and still sees 100 available.
-
User B then requests 90, resulting in an inventory discrepancy because the app was working with outdated data.
Another scenario is when two users are working simultaneously:
-
There are 20 bottles in stock.
-
User A requests 10.
-
At nearly the same time, User B requests 12.
-
Since both users started from the same stock value, both transactions may be accepted before either syncs, causing the inventory to go negative or become inconsistent.
We know that disabling “The app can start when offline” prevents the app from opening without an internet connection. However, our understanding is that this does not force the app to constantly work with the latest server data or prevent users from making changes based on a cached copy that hasn’t synchronized yet.
So our questions are:
-
Is there any configuration or best practice to make AppSheet behave as close as possible to a real-time online application?
-
Is it possible to force a sync or validation before users submit inventory transactions?
-
Has anyone implemented a reliable approach to prevent these kinds of inventory race conditions?
-
Or is this simply a limitation of AppSheet’s architecture, meaning that another solution (or additional backend logic) is required for this type of inventory management?
We’d appreciate any recommendations or experiences from others who have built inventory management applications with AppSheet.
Thank you!