Reputation: 3
Hi everyone (i'm a newbie in android and kotlin), What i need to do is send periodically (every 10 sec) some information, of may application, on a remote server whit a POST request independently if the application is in foreground or background. Now i found some interesting source like this: https://guides.codepath.com/android/Repeatinag-Periodic-Tasks#alarmmanager.
But i have some perplexity:
Thanks everyone in advance!
More Info:
The information in question are logs, so every 10 sec the app send it's logs(if present) to a logstash -> Elasticsearch.
I know that 10 sec is a lot, and it will drain the battery of the device, but i'm not the one in charge of this decision and i can't change it.
Upvotes: 0
Views: 353