issues
search
amplitude
/
Amplitude-Kotlin
Amplitude Kotlin SDK
MIT License
27
stars
10
forks
source link
feat: offline support
#168
Closed
Mercy811
closed
6 months ago
Mercy811
commented
6 months ago
Summary
Add support for offline
Detect network connectivity when track()
ACCESS_NETWORK_STATE
permission is required. If not, this feature will not supported and will fallback to
previous behavior
(causing an error)
If no network, save events to storage
Add network listener
When back to online, flush() to send events in storage
See local test
here
Checklist
[ ] Does your PR title have the correct
title format
?
Does your PR have a breaking change?:
Summary
ACCESS_NETWORK_STATE
permission is required. If not, this feature will not supported and will fallback to previous behavior (causing an error)Checklist