Games What foreground service type to use for games?

andymc

Well-Known Member
Licensed User
Longtime User
The Google Play store is warning me that I'm "Missing foreground service type".

For games, do I simply add this to the manifest?

B4X:
SetServiceAttribute(Starter, android:foregroundServiceType, shortService)

Then this to the starter service?
B4X:
Private Sub Service_Timeout(Params As Map)
    Service.StopForeground(NotificationId)
End Sub

Or do I do something different? My games are using the libgdx library and only have the starter service module and main.
 
Top