Session logs are stored locally, to be pushed later. This is done right after a session stops. In the rare case that this fails, the session should be recoverable. Implement an in-memory buffer containing the most recent completed session. This buffer can be used to retry storing the session at a later time or failing that, requested to be uploaded and attached as CSV. Both of these behaviors are very close to what is currently done in dev with pushlog (v1), and CSVs are uploaded after session stops, but this should be redone for a more intuitive user experience.
Session logs are stored locally, to be pushed later. This is done right after a session stops. In the rare case that this fails, the session should be recoverable. Implement an in-memory buffer containing the most recent completed session. This buffer can be used to retry storing the session at a later time or failing that, requested to be uploaded and attached as CSV. Both of these behaviors are very close to what is currently done in
dev
with pushlog (v1), and CSVs are uploaded after session stops, but this should be redone for a more intuitive user experience.