Android Question android.app.MissingForegroundServiceTypeException

Pathrose

Member
Licensed User
Hi, Referring to my previous question above, after lot of research, I think I found the issue ...

Though my manifest editor did not show any line related to foreground service, I checked the compiled manifest.xml file inside the Objects folder and found this line: <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>

I understand that this line in the compiled manifest file is making the playstore throw exception. Even though neither did my manifest editor contain anything related to foreground service nor did my starter service contain any code, simply having the Starter service declared in the project caused B4A to add the foreground service permission automatically..

Solution.. I removed the Starter service module from the project as it does not contain any code, and after recompiling, the manifest.xml no longer included the FOREGROUND_SERVICE permission. The Play Console has not shown any crash so far..

I dont know whether this is the right approach, however this error is likely to be faced by many in the latest version of android in some phones..
 
Top