I am working on application which tracking user way to work and back to home. Application is based on widget (where are printing informations to user) and background service which checking localizations and cunting informations and displaying on widget.
Before Android 9 I used AlarmManager and background service to every couple of minutes checking user localization and printing informtions on widget. In Android 9 there are Service limitations and I cannot repeat service no less then 15 minutes. 15 minutes is too much, some users can have 5 minutes in road to work or home.
I tried JobService, JobIntentService, AlarmManager and no one is working less then 15 minutes. Only Foreground Service is working but I cannot use it because user are not running activity, all is working in background using widget.
Has anybody have a idea is that possible to run service in background repeating in less then 15 minutes. Or maybe any other idea how to achieve my requirements? I need every couple o minutes (1-5 minutes) checking user localizations and counting, then sending datas to widget view.