Android Question Error in Manifest File when compiling

nakkal

Member
Licensed User
Longtime User
Hi guys!
I'm getting the following message from the Google Developers Console: "The foreground service type is missing.", so I added these lines to my manifest file and added code to my Starter:

Manifest:
SetServiceAttribute(Starter, android:foregroundServiceType, shortService)
Starter:
Private Sub Service_Timeout(Params As Map)
    Service.StopForeground(51042) 'this is the id of the automatic foreground notification
End Sub

But when I try to compile my app, I get the following message:

"AndroidManifest.xml:41: error: 'shortService' is incompatible with attribute foregroundServiceType (attr) flags [camera=64, connectedDevice=16, dataSync=1, location=8, mediaPlayback=2, mediaProjection=32, microphone=128, phoneCall=4].
error: failed processing manifest."



Java version: 11
B4A Version: 13:40

What could be wrong? Thanks in advance!
 
Top