Hybrid App offline tracking issue
We work on hybrid app tracking (only it’s javascript part from webview). We utilize AppMeasurement javascript implementation as the app has page reloads (all the app files are stored on user’s device) and we need to track events offline.
Online tracking works fine. We have issues with offline tracking.
Settings:
only ‘s.trackOffline = true’ and ‘Timestamp Optional’ for the report suite.
Not set:
s.offlineThrottleDelay
s.offlineHitLimit
s.forceOffline
s.forceOnline
The issue:
We’re able to see offline events in real-time report as soon as we restore the connection after offline interactions. We can see them in the report later.
But if there are more than 10 events in offline queue (for instance, we fire 20 events offline) we restore the connection and only 10 (or less) events fire in real time report (and appear in the report later).
This behavior is either in local environment or in the app on the iPad.
We’ve tried to monitor the process in the browser locally:
requests are multiplying approximately every 500 milliseconds in the queue trying to get to the server. And only the last 10 requests for the last 10 events (or even less) get status 200 after restoring the connection.
What can cause the issue? Have we missed smth or is it expected behavior? Thank you!