Skip to content
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 support #22

Open
angelxmoreno opened this issue Nov 13, 2023 · 2 comments
Open

offline support #22

angelxmoreno opened this issue Nov 13, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@angelxmoreno
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Looks like the Android and IOS sdks have it: https://matomo.org/faq/general/will-matomo-track-users-when-the-web-app-or-mobile-app-is-offline-no-internet/

Describe the solution you'd like

  1. The request objects would be stored in a queue.
  2. The lib would send out the requests in bulk

Describe alternatives you've considered
none

Additional context

  1. see the Advanced Users: Send multiple API Requests at once section in https://developer.matomo.org/api-reference/reporting-api
  2. Will Matomo track users when the web app or mobile app is offline (no internet)?
@angelxmoreno angelxmoreno added the enhancement New feature or request label Nov 13, 2023
@donni106
Copy link
Owner

Thanks for the request. I can agree to having a queue with tracking objects to send once a device gets online could be a big step forward.

@angelxmoreno
Copy link
Contributor Author

Digging deeper into this I found a few "concerns":

  1. Matomo throws an exception for all requests older than 24 hours - Adds cdt parameter to tracking query items matomo-org/matomo-sdk-ios#301 (comment)
  2. The IOS SDK suffers from this as well
  3. Prior to implementing offline support we should implement a Queuing system with batch requests. The Queue system should start with a MemoryStorage object that implements an interface ( something like QueueStorage ). This way, users can optionally pass w/e storage mechanism they want. This QueueStorage would be enhanced to do offline work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants