Offline Support #5326
Replies: 23 comments 28 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. |
Beta Was this translation helpful? Give feedback.
-
Hi, i need it in the 9,0,0 version flutter. Thanks |
Beta Was this translation helpful? Give feedback.
-
Wow finally, awesome!! You just won me as a new developer using appwrite over competing products! 👍 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Hello, I have been testing it and it works very well.
|
Beta Was this translation helpful? Give feedback.
-
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:) |
Beta Was this translation helpful? Give feedback.
-
This would be amazing. What is the theoretical timeline for this coming to Apple SDK - 6 months, a year, more? |
Beta Was this translation helpful? Give feedback.
-
Awesome feature. Keen to see solution:) |
Beta Was this translation helpful? Give feedback.
-
Hi Could you please let me know when flutter offline support will be production ready? |
Beta Was this translation helpful? Give feedback.
-
I preferIsar Databasefor flutter offline database support |
Beta Was this translation helpful? Give feedback.
-
Two questions:
|
Beta Was this translation helpful? Give feedback.
-
Any progress on this lately? I'm especially looking forward to iOS. |
Beta Was this translation helpful? Give feedback.
-
Any updates? Current version is 11.0.1 and offline support is reporting 9.0.0 and is failing. Any plans on this? Roadmap? |
Beta Was this translation helpful? Give feedback.
-
I am also looking for updates on this Offline Support features. It's a must feature for any mobile app. Thanks. |
Beta Was this translation helpful? Give feedback.
-
I am also looking for an update and any approximate timelines for offline sync support. A must for any mobile apps these days. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Offline sync is also great for any web app these days! OOTB support for general Progressive Web App standards would be great. |
Beta Was this translation helpful? Give feedback.
-
yeah this is a must feature. Looking forward to have it |
Beta Was this translation helpful? Give feedback.
-
Hello, does anyone have an example of how to use Appwrite with brick? |
Beta Was this translation helpful? Give feedback.
-
Looking forward for appwrite offline solution. Currently I'm considering Supabase + Powersync but the cost would be $74 monthly. Appwrite would be only $15. |
Beta Was this translation helpful? Give feedback.
-
Did this ever get implemented?@stnguyen90 |
Beta Was this translation helpful? Give feedback.
-
Hey there! What's the current status on that? Is there a timeline when this gets implemented in stable for flutter? 😊@stnguyen90 |
Beta Was this translation helpful? Give feedback.
-
Well as no one from appwrite is taking the time to answer. Time to move. |
Beta Was this translation helpful? Give feedback.
-
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 thisRFC,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. OurDiscord serveris 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. |
Beta Was this translation helpful? Give feedback.
-
Hello all 👋🏼
Since offline support has been such ahighly 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 ourRFC.
Getting Started
First, you need to usethisbranch of the SDK. You can do so by updating the
pubspec.yaml
.Refer to theDart docsfor 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 ourTodo with Flutter.
Next Steps
Join us onDiscordif you need any help. We'd love to get your feedback on how offline support works for you, so feel free to post below!
Beta Was this translation helpful? Give feedback.
All reactions