I have a service with the following attributes
The project <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="21"/>. It is compiled with android-26/android.jar.
I developed this app on B4A 7.30 and everything was working fine. Recently I compiled the app using B4A 8.0 and some of my users are reporting that every time their phone restarts, the app has a persistent notification icon.
I read about Automatic Foreground Mode and thought maybe that is the issue. So I set Service.AutomaticForegroundMode=Service.AUTOMATIC_FOREGROUND_NEVER but now my users are saying the app doesn't start at boot at all and that they need to manually start by opening the app.
Once again, on B4A 7.30 it was fine. Is this a known limitation of B4A 8.0/Android 8.0? Any way to fix this?
B4X:
#StartAtBoot: True
#StartCommandReturnValue: android.app.Service.START_STICKY
The project <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="21"/>. It is compiled with android-26/android.jar.
I developed this app on B4A 7.30 and everything was working fine. Recently I compiled the app using B4A 8.0 and some of my users are reporting that every time their phone restarts, the app has a persistent notification icon.
I read about Automatic Foreground Mode and thought maybe that is the issue. So I set Service.AutomaticForegroundMode=Service.AUTOMATIC_FOREGROUND_NEVER but now my users are saying the app doesn't start at boot at all and that they need to manually start by opening the app.
Once again, on B4A 7.30 it was fine. Is this a known limitation of B4A 8.0/Android 8.0? Any way to fix this?