-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Since Android 10 a foreground service needs to have a type, see https://developer.android.com/about/versions/14/changes/fgs-types-required#short-service.
We've been using FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE in our app, but Google is now suddenly rejecting our app because "Use of FGS is not perceptible to the user when performing Connected Device - Connected Device Other functionality."
I'm not quite sure how Google thinks we can let the user know that our app is using a flic button when the phone's screen is off, but anyway, in your example https://github.com/50ButtonsEach/flic2lib-android?tab=readme-ov-file#background-execution, you don't specify a foreground service type. What would you recommend to use then?
Or do we need to use something like https://developer.android.com/reference/android/companion/CompanionDeviceService#onDeviceAppeared(java.lang.String) to keep our app awake while the flic button is in range?
Any pointer would be much appreciated, thanks