Coffee icon indicating copy to clipboard operation
Coffee copied to clipboard

v2.25 tile regression

Open zekooooo opened this issue 5 months ago • 5 comments

Pressing the tile now produces a wait/close popup on Android 14, Sony phone. Version 2.24 and older versions still work fine.

zekooooo avatar Aug 03 '25 17:08 zekooooo

Can you post a screenshot of that popup?

mueller-ma avatar Aug 04 '25 05:08 mueller-ma

I can't reproduce this issue. Please reopen it when you can share more information about the issue, e.g. a screenshot of that popup.

mueller-ma avatar Aug 10 '25 06:08 mueller-ma

Screenshot-coffee-2-25-crashing.png

First time, I got the message box immediately when I pressed the tile, it popped up over the app I was using, so I reinstalled 2.24

This time after installing 2.25 I opened the Coffee app, went back and pressed the tile but it wouldn't turn on. When I went back to the Coffee app I got this screen.

zekooooo avatar Aug 11 '25 18:08 zekooooo

Came here to postt he same bug report. I'm also on Android 14, using a Motorola Moto G 5G 2023. If I click the tile once, nothing happens, and if I click it a second time I get the exact same popup. Below is the logcat of the crash. Thanks!

FATAL EXCEPTION: main Process: com.github.muellerma.coffee, PID: 18666 android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service com.github.muellerma.coffee/.ForegroundService at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:54) at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:50) at android.os.Parcel.readParcelableInternal(Parcel.java:4870) at android.os.Parcel.readParcelable(Parcel.java:4852) at android.os.Parcel.createExceptionOrNull(Parcel.java:3052) at android.os.Parcel.createException(Parcel.java:3041) at android.os.Parcel.readException(Parcel.java:3024) at android.os.Parcel.readException(Parcel.java:2966) at android.app.IActivityManager$Stub$Proxy.startService(IActivityManager.java:6377) at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1951) at android.app.ContextImpl.startForegroundService(ContextImpl.java:1926) at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:830) at androidx.core.content.ContextCompat$Api26Impl.startForegroundService(SourceFile:1124) at androidx.core.content.ContextCompat.startForegroundService(SourceFile:704) at com.github.muellerma.coffee.ForegroundService$Companion.changeState(SourceFile:324) at com.github.muellerma.coffee.tiles.ToggleTile.onClick(SourceFile:16) at android.service.quicksettings.TileService$H.handleMessage(TileService.java:499) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loopOnce(Looper.java:242) at android.os.Looper.loop(Looper.java:362) at android.app.ActivityThread.main(ActivityThread.java:8393) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:992)

eddieofny avatar Aug 12 '25 22:08 eddieofny

I think this might be caused by the infamous battery usage "optimizing" that Android does.

I came here because I was having the same issue (Coffee worked through the in-app toggle, but at some point stopped working through the tile toggle).

Turns out, I had forgotten to re-enable background/unrestricted battery usage for Coffee after I reset some stuff previously. Enabling it made the tile work again.

Depending on your Android version, that might look like, for example

  • Image

    or

  • Image

mentalisttraceur avatar Sep 15 '25 17:09 mentalisttraceur