Offline Support #5326
Replies: 25 comments 31 replies
|
It would nice, if we can difference between the document that is already sync in server & document that is not sync. distinction will allow help, show some warning to user or put some limitation on deleting document or etc... possible scenario. |
|
Hi, i need it in the 9,0,0 version flutter . Thanks |
|
Wow finally, awesome!! You just won me as a new developer using appwrite over competing products! 👍 |
|
I am not sure if it's supported yet. If it's already then it's HUGE... Request is documents gets Sync Attribute data automatically that have changed from server. Which mean, if let's say user A created a order, then went offline and other side some other user B updated the item in that order. So, next-time when user A come online he want to see latest change to do that right now whole documents have to be re-fetched. As, in client side it doesn't know which portion of data have changed. So, in future what could possible is when user A back-online a connection gets open immediately between client |
|
Hello, I have been testing it and it works very well.
|
|
Hi I am so happy about this new feature and hope to use it in the future instead of my own solution. The only questions/wishes I have would be that I could watch documents or stuff offline via realtime or listen to the local database somehow. Also I wanted to ask if theres a possibility to insert executions/Objects as documents for example I have some functions that return me a document of a certain collection. But the thing that would be very helpful for me would be away to look for something offline first before asking the server for it or even better look only offline for it. But as said before most of all I am very thankful for this solution and think your doing great work at appwrite :) |
|
This would be amazing. What is the theoretical timeline for this coming to Apple SDK - 6 months, a year, more? |
|
Awesome feature. Keen to see solution :) |
|
Hi Could you please let me know when flutter offline support will be production ready? |
|
I prefer Isar Database for flutter offline database support |
|
Two questions:
|
|
Any progress on this lately? I'm especially looking forward to iOS. |
|
Any updates? Current version is 11.0.1 and offline support is reporting 9.0.0 and is failing. Any plans on this? Roadmap? |
|
I am also looking for updates on this Offline Support features. It's a must feature for any mobile app. Thanks. |
|
I am also looking for an update and any approximate timelines for offline sync support. A must for any mobile apps these days. Thanks. |
|
Offline sync is also great for any web app these days! OOTB support for general Progressive Web App standards would be great. |
|
yeah this is a must feature. Looking forward to have it |
|
Hello, does anyone have an example of how to use Appwrite with brick? |
|
Looking forward for appwrite offline solution. Currently I'm considering Supabase + Powersync but the cost would be $74 monthly. Appwrite would be only $15. |
|
Hey there! What's the current status on that? Is there a timeline when this gets implemented in stable for flutter? 😊 @stnguyen90 |
|
Well as no one from appwrite is taking the time to answer. Time to move. |
|
Hey Appwriters, I know many of you are anxiously waiting for updates on this. I'll do my best to explain the current situation of offline support and what we want to try next. Last year we’ve spent multiple months exploring different directions for the implementation of offline support. We ended up going with the direction shared on this thread and as described in this RFC, but soon realized a very generic solution would require a different approach. Our main challenges came down to the added complexity introduced by relationships that were launched as an experiment at around the same time and a limited ability to properly imitate the querying capabilities of the backend when offline. We don’t want to compromise on the level of quality Appwrite developers should be getting. What’s next? We’re exploring new directions. One of the directions I’m personally very curious about is using the Appwrite backend as a complimentary tool that heavily rely on a solid offline first or offline-only database and uses Appwrite backend capabilities mainly for remote syncing and conflict resolutions. SQLite can be one good example, but there are more, we might even have support for a few of this. As always, we're always happy to hear your feedback and ideas. Feel free to drop them in the comments. What’s now? Building offline first capabilities with Appwrite is still very much possible for many use cases even if not through a built in solution. Yes it requires more frontend code, thinking and adjustments, but for sure possible. If you’re not into the DIY approach, you can also integrate Appwrite with other tools that do offer what you’re looking for, nothing wrong about that, and Appwrite was designed to integrate well with other tools, competitive to Appwrite or not. If you need help understanding how to go about it. Our Discord server is a great way to start, our team would also love to learn about your use cases as we explore new and creative directions to solve this problem with a quality solution. If both options don’t cut it for you, the best option would be to use a different tool that is better for this job, and revisit Appwrite when we do have a better solution for your offline support needs. |
|
Offline sync was the most requested feature.. Offline sync was the most requested feature in a couple GitHub issues before this discussion, and it was great to see Appwrite has tried to address it in different ways over the years (I remember their struggles and several attempts, not an easy problem to solve when so much was already done and needed to be done), but the solution so far seems to focus on RxDB and JavaScript. Native app developers still need a reliable way to work offline and sync their data. RxDB may work well for web and JavaScript apps, but it doesn’t help much if you’re building with Swift, Kotlin, or any another native stack really. I’d like to see Appwrite provide a platform neutral sync API. Clients will still need local storage, but the server should provide a shared way to fetch changes since the last sync, track deletions, and handle conflicts. If each client has to build its own sync logic, it won’t have a complete view of changes made elsewhere. Firestore has had offline support for a long time, and it’s one of their top features imo. One question for the team: Is server side and native support, through the SDKs on the roadmap? Or is client side sync and the RxDB integration the intended scope of Appwrite’s offline sync? I believe if we can get an answer to this question 🙏 whatever it may be, we can at least move on from our hopes. Thank you! |
|
I really like the direction of making Appwrite more offline-first.
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello all 👋🏼
Since offline support has been such a highly requested feature, we've been hard at work updating our SDKs to work offline. We've started with the Flutter SDK and plan to add support in the other client SDKs after some testing and feedback.
For details on the design and implementation, please take a look at our RFC.
Getting Started
First, you need to use this branch of the SDK. You can do so by updating the
pubspec.yaml. Refer to the Dart docs for more details on how to do this.Next, to enable offline support, call
await client.setOfflinePersistency(status: true)like:One very important thing is that write operations will not resolve until online again, so you have to update your code to update optimistically. For example:
For a sample app with Offline Support, check out our Todo with Flutter.
Next Steps
Join us on Discord if you need any help. We'd love to get your feedback on how offline support works for you, so feel free to post below!
All reactions