My app has a service which has StartAtBoot=True. It used to be a sticky service, but since the app now targets API Level 26, it uses Service.AutomaticForegroundMode = Service.AUTOMATIC_FOREGROUND_ALWAYS instead.
The service has a persistent notification icon. The problem is whenever a user updates the app from Play Store, this service gets stopped and notification disappears. I always thought it came back but today a user reported it doesn't and that's when I noticed as well.
Is there something I should do to the service to make sure it gets started automatically after every Play Store update?
The service has a persistent notification icon. The problem is whenever a user updates the app from Play Store, this service gets stopped and notification disappears. I always thought it came back but today a user reported it doesn't and that's when I noticed as well.
Is there something I should do to the service to make sure it gets started automatically after every Play Store update?