CookieJarApps / SmartCookieWeb-Preview

SmartCookieWeb, redesigned using GeckoView
Mozilla Public License 2.0
305 stars 19 forks source link

Crash on Startup - MissingForegroundServiceTypeException #130

Open android-smiley opened 1 year ago

android-smiley commented 1 year ago

Hi,

since updating to the latest available version (21.0) the app crashes on starting.

Please see below error message.

Device: Pixel 7 Pro OS: GrapheneOS, Android 14 Build Number: UP1A.231105.003.2023110700

`

type: crash
osVersion: google/cheetah/cheetah:14/UP1A.231105.003/2023110700:user/release-keys
package: com.cookiejarapps.android.smartcookieweb:89
process: com.cookiejarapps.android.smartcookieweb
processUptime: 659 + 266 ms
installer: com.android.packageinstaller

java.lang.RuntimeException: Unable to start service com.cookiejarapps.android.smartcookieweb.downloads.DownloadService@7e65f49 with Intent { cmp=com.cookiejarapps.android.smartcookieweb/.downloads.DownloadService (has extras) }: android.app.MissingForegroundServiceTypeException: Starting FGS without a type  callerApp=ProcessRecord{d4c0670 17063:com.cookiejarapps.android.smartcookieweb/u0a153} targetSDK=34
    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4856)
    at android.app.ActivityThread.-$$Nest$mhandleServiceArgs(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2296)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:205)
    at android.os.Looper.loop(Looper.java:294)
    at android.app.ActivityThread.main(ActivityThread.java:8199)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
    at com.android.internal.os.ExecInit.main(ExecInit.java:49)
    at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
    at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:359)
Caused by: android.app.MissingForegroundServiceTypeException: Starting FGS without a type  callerApp=ProcessRecord{d4c0670 17063:com.cookiejarapps.android.smartcookieweb/u0a153} targetSDK=34
    at android.app.MissingForegroundServiceTypeException$1.createFromParcel(MissingForegroundServiceTypeException.java:53)
    at android.app.MissingForegroundServiceTypeException$1.createFromParcel(MissingForegroundServiceTypeException.java:49)
    at android.os.Parcel.readParcelableInternal(Parcel.java:4890)
    at android.os.Parcel.readParcelable(Parcel.java:4872)
    at android.os.Parcel.createExceptionOrNull(Parcel.java:3061)
    at android.os.Parcel.createException(Parcel.java:3050)
    at android.os.Parcel.readException(Parcel.java:3026)
    at android.os.Parcel.readException(Parcel.java:2968)
    at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:6776)
    at android.app.Service.startForeground(Service.java:775)
    at mozilla.components.feature.downloads.AbstractFetchDownloadService.setForegroundNotification$feature_downloads_release(AbstractFetchDownloadService.kt:632)
    at mozilla.components.feature.downloads.AbstractFetchDownloadService.handleDownloadIntent$feature_downloads_release(AbstractFetchDownloadService.kt:312)
    at mozilla.components.feature.downloads.AbstractFetchDownloadService.onStartCommand(AbstractFetchDownloadService.kt:271)
    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4838)
    ... 11 more

`