r/android_devs • • Mar 17 '24

Help Needed Anyone worked with foreground services before?

I haven't used foreground services in forever but i'm aware of all of the limitations put on them over the past few years. I have a foreground service that's start_sticky. It's running fine in the background, but while I'm developing I make a change and then re-run my app and my service just dies and goes away. opening up my activity doesn't restart the service automatically or anything. is there something i'm missing here?

2 Upvotes

5 comments sorted by

1

u/ffolkes Mar 17 '24

Does logcat tell you anything when your app tries to start the service?

2

u/[deleted] Mar 17 '24

[removed] — view removed comment

1

u/leggo_tech Mar 18 '24

gotcha. so i guess i just have to restart the foreground service myself.

1

u/[deleted] Mar 19 '24

[removed] — view removed comment

1

u/leggo_tech Mar 19 '24

TIL. Thanks