-
Notifications
You must be signed in to change notification settings - Fork 11
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
offline #2
Comments
Not yet, but that's the plan for the SDK before it gets to 1.0. The current version will lose events if connectivity is not available. I'm working on adding batch events on the backend, and once that's implemented, then the SDKs could store events in memory and batch send them on an interval until there's connectivity. |
Good news ! |
Our SDK doesn't explicitly check for that, not sure about the underlying OS though. Why do you say they allergic to connectivity? Form my experience if you go offline there are very few apps that actually work, in most cases people will have constant internet connection. |
Thank you for your quick reply !
That's what I thought. I would be curious to mesure how this affects performances. It could make the case for a dedicated Dart/Flutter SDK suited to the needs of the unconstantly connected, i.e. sober sync design.
I beg to disagree and reckon that most people have inconstant connectivity, mostly because of low income vs prepaid internet cost + lack of infrastructure and rural isolation.
To keep this in mind facebook delibarately slowed their employees productivity :
https://www.theverge.com/2015/10/28/9625062/facebook-2g-tuesdays-slow-internet-developing-world
But yeah most people targetted by a paying/add-based app can afford connectivity
…________________________________
From: Guilherme Oenning ***@***.***>
Sent: Saturday, July 22, 2023 7:31:17 AM
To: aptabase/aptabase_flutter ***@***.***>
Cc: Pierre Gancel ***@***.***>; Author ***@***.***>
Subject: Re: [aptabase/aptabase_flutter] offline (Issue #2)
Our SDK doesn't explicitly check for that, not sure about the underlying OS though.
Why do you say they allergic to connectivity? Form my experience if you go offline there are very few apps that actually work, in most cases people will have constant internet connection.
—
Reply to this email directly, view it on GitHub<#2 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADMBPBQ6CHU45SW7LRUWOALXRNQSLANCNFSM6AAAAAA2SXGWWA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
You're right, my comment was based on my own bubble, which is not very representative! Would you like to contribute with Offline support for the Flutter SDK? |
Sure ! It would be useful to write connectivity tests, |
Awesome, great to have you onboard. There's no rush at all as I still need to work on the batch event ingestion api. It'll probably be something like:
And with regards to the SDK, I was thinking of when trackEvent is called, it would simply enqueue it in memory and then dispatch the list of in-memory events every X seconds if there's internet connectivity |
What are you thinking for offline persistence? sqlite3? file? |
SEMBAST, there is already a PR : #6 |
Hi @rafagazani, @flutter-painter, we merged #8 and release version 0.4.0. Give it a try and let us know how it goes 😸 |
This is great news ! Thank you for the heads up I will try and likely switch to it :) |
How does the SDK deal with offline devices ?
Does it check if the device is offline before sending events ?
Does it store them until a steady connexion is available ?
The text was updated successfully, but these errors were encountered: