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

Are events/screenviews occuring while the user is offline tracked when the user comes back online? #200

Closed
mattab opened this issue Oct 31, 2017 · 3 comments

Comments

@mattab
Copy link
Member

mattab commented Oct 31, 2017

Hi @brototyp

wondering if the events/screenviews occuring while the user is offline are then tracked when the user comes back online?

FYI: By default Piwik accepts "events in the past" for up to 24 hours in the past.

It would be great to support this 👍

(Refs #100)

@brototyp
Copy link
Member

brototyp commented Nov 1, 2017

Hi @mattab,

that is already the case since the start of the Swift version. All events/screenviews are tracked in this order:

  1. Create an Event and stored it in a queue
  2. When the Event dispatcher ist dispatching it will take X (currently 20) Events and send them to the Backend
  3. If the Events were send properly, they will be removed from the queue and the next events are sent. If it failed to dispatch the events due to failed internet connection, the dispatcher will sleep and try later.

But: Currently the event queue is in memory only, so if the app is terminated all non dispatched events are lost. (#137)

@mattab
Copy link
Member Author

mattab commented Nov 5, 2017

Thanks for the notes @brototyp

-> Would be great to add a description of the feature in the readme, so people looking for "offline" for example will directly see it's supported 👍

@brototyp
Copy link
Member

I added a paragraph to the readme.

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

No branches or pull requests

2 participants