When using Android SDK in an app, before the app exits, calling client.Destroy() is suppose to clear the SDK cache and post all impressions, however, the cached impressions are not showing up Live tail tab in Split user interface.
The client.Destory() will post any cached impressions, however, if the app shutdown its process before or during the post request, the request will fail and no impressions are posted to Split cloud.
To resolve the issue, there are two options
- This is the recommended action, add to the app workflow calling client.Flush() method which will post the cached impressions and events to Split cloud.
- Add a 2-3 seconds sleep or delay after the client.Destory() to allow enough time to post the impressions before the app exits, the amount of seconds will be depend on how fast the network though, it is recommended to adjust it accordingly.
Please sign in to leave a comment.