Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix foregound service type #1293

Closed
hsjoberg opened this issue Sep 29, 2023 · 2 comments
Closed

Fix foregound service type #1293

hsjoberg opened this issue Sep 29, 2023 · 2 comments
Labels
android This issue relates to the Android build high prio This issue has high priority and should be addressed soon
Milestone

Comments

@hsjoberg
Copy link
Owner

hsjoberg commented Sep 29, 2023

In Android 14, foreground services must explain the intent of the service.

https://developer.android.com/about/versions/14/changes/fgs-types-required

This will hopefully make phone vendors respect AOSP foreground service policies, which has been a huge problem in the past.
Samsung for example is promising to follow it: https://developer.samsung.com/mobile/app-management.html

None of the service types appear to be a reasonable choice for our Lnd service, so perhaps we should use specialUse and explain via metadata that our intent is to run Lightning network node persistently for the user, in order to receive incoming payments, et cetera.

@hsjoberg hsjoberg added high prio This issue has high priority and should be addressed soon android This issue relates to the Android build labels Sep 29, 2023
@djkazic
Copy link
Collaborator

djkazic commented Sep 29, 2023

I think abusing mediaplay might work as a fallback

@hsjoberg
Copy link
Owner Author

hsjoberg commented Oct 3, 2023

I think abusing mediaplay might work as a fallback

I'm afraid they will punish us if we aren't honest.*

Right now I'm leaning towards using specialUse. I found out that you're supposed to declare your service in the Play Console, which gives us an opportunity to clearly explain what we want to do.

*) I use suppose we could use mediaPlay and introduce podcasting support like Breez has lol.
Or make Blixt into a music player playing music from John Berg and Dj Kazic.

@hsjoberg hsjoberg closed this as completed Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android This issue relates to the Android build high prio This issue has high priority and should be addressed soon
Projects
None yet
Development

No branches or pull requests

2 participants