I need to create an Android service that performs operations every 15 minutes. This service must start at boot completed and must restart automatically (in case of interruption).With Android Oreo, the startService method generates an exception and the startForegroundService method aborts the service after 5 seconds. I saw that you can use the JobScheduler, but how can I make it restart automatically in case of interruption? How can I start the Job at the boot of Android?
Thanks