Skip to content

offline capabilities and auto-syncing #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
marqueeeeeee opened this issue Apr 11, 2019 · 19 comments · Fixed by #911
Closed

offline capabilities and auto-syncing #149

marqueeeeeee opened this issue Apr 11, 2019 · 19 comments · Fixed by #911
Labels
type:feature New feature or improvement of existing feature

Comments

@marqueeeeeee
Copy link

Does this support offline saving and auto-sync when network is available? similar to saveEventually from parse sdk and firebase db? Thank you!

@RodrigoSMarques
Copy link
Contributor

Hi @marqueeeeeee,
this feature is not available yet.

@frsisalima
Copy link

Hello, is the implementation of this feature planned? it would be great to have offline support

@monajafi
Copy link

monajafi commented Aug 22, 2019

we can implement saveEventually in android by caching saves if there is no connectivity then with the help of workmanager plugin which is a wrapper around android WorkManager we can sync the cached saves when the device connects to internet
This is easy in android but I'm trying to figure out how to implement in iOS because the background jobs are restricted in iOS we have just background fetch.
One point to have in mind about saveEventually is that there is no callback after saving
I have an app which is developed using native sdk If the server is down and device get connected to internet the save fails

@phillwiggins
Copy link
Member

phillwiggins commented Aug 22, 2019 via email

@monajafi
Copy link

One important thing is that after successful save the save pool should be cleared not just after gaining connectivity and saving without considering the save result, which is a behaviour in native sdks

@phillwiggins
Copy link
Member

phillwiggins commented Aug 22, 2019 via email

@cadaniel
Copy link

Would love to see this feature. It's basically all I'm missing from what I need to replace firebase in my app (hopefully before launching)

Is there some engineering docs for this that I could help contribute?

@RodrigoSMarques
Copy link
Contributor

The project is using SEMBAST which is also a NoSQL database written in Dart.
The sample application is using SEMBAST to do some offline resources. Take a look at the sample project.

You can study the source of Parse SDK on Android to see how it works. This is how I contributed to this plugin.

@Sun3
Copy link

Sun3 commented Dec 15, 2019

I also would love to see saveEventually implemented for both Android and iOS.

@allanwolski
Copy link

It's very important to have offline support for our application.

@prasantco
Copy link

It's very important to have offline support for our application.

I agreed

@paulocagol
Copy link

Hello, any progress?

@RodrigoSMarques
Copy link
Contributor

No progress.

1 similar comment
@RodrigoSMarques
Copy link
Contributor

No progress.

@paulocagol
Copy link

Okay, thanks for the feedback.

@2shrestha22
Copy link

We need this feature. I moved from Firebase to Parse because it is a great OSS. But while migrating my app I have feeling of using other platform like Appwrite because this SDK is very parse specific. I mean why we need to use get set instead we can do it in simple dart way using constructors and ability to use freezed package to create data class will be great.

I haven't yet understood the usage of clone() in the SDK. I hope I can contribute to this awesome SDK in future.

@mtrezza mtrezza added type:feature New feature or improvement of existing feature and removed type:improvement labels Dec 6, 2021
@sils
Copy link

sils commented May 22, 2022

For others looking here, this approach seems interesting, though it involves ditching the SDK sadly: https://www.back4app.com/docs/flutter/graphql/offline-first-database

@sils
Copy link

sils commented Oct 18, 2023 via email

@pastordee
Copy link
Contributor

I Loved this feature from my objective C days nice one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or improvement of existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.