sdk-for-flutter icon indicating copy to clipboard operation
sdk-for-flutter copied to clipboard

Update Flutter SDK to add offline support

Open stnguyen90 opened this issue 1 year ago • 1 comments

What does this PR do?

This is generated from Appwrite.

Test Plan

Manual:

  • [x] Android
    • I was able to queue write operations successfully while offline.
  • [x] iOS
    • I was able to queue write operations successfully while offline
    • I tested by turning wifi on my mac off, making updates, and then turning wifi on again. I had to initiate another API call, then then the write queued was processed as expected.
  • [x] Web
    • I was able to queue write operations successfully while offline
    • I tested by using the chrome dev tools to throttle my network to offline, making updates, and then turning off the throttle. The write queue was processed as soon as i disabled throttling.
  • [x] MacOS
    • I was able to queue write operations successfully while offline
    • I tested by turning wifi off, making updates, and then turning wifi on again. The write queue was processed as soon as i enabled wifi again.
  • [x] Linux
    • I was able to queue write operations successfully while offline
    • I tested by turning wifi off, making updates, and then turning wifi on again. The write queue was processed as soon as i enabled wifi again.
    • some linux packages are required
  • [x] Windows
    • I was able to queue write operations successfully while offline
    • I tested by turning wifi off, making updates, and then turning wifi on again. The write queue was processed as soon as i enabled wifi again.
    • sqlite3.dll is required

Related PRs and Issues

Appwrite PR:

  • https://github.com/appwrite/appwrite/pull/5227

Previous SDK Generator PRs:

  • https://github.com/appwrite/sdk-generator/pull/618
  • https://github.com/appwrite/sdk-generator/pull/627
  • https://github.com/appwrite/sdk-generator/pull/629

Have you read the Contributing Guidelines on issues?

(Write your answer here.)

stnguyen90 avatar Mar 13 '23 23:03 stnguyen90

Any updates on current progress? I sure would love to see offline sync added.

Thanks.

Sun3 avatar Feb 23 '24 06:02 Sun3