Closed AlexBreedveld closed 6 months ago
Hello. Thankyou for reporting the issue! Can you please specify Android version you are using app on?
It seems you are using A14 :) This error introduced since A14(https://stackoverflow.com/questions/77235063/one-of-receiver-exported-or-receiver-not-exported-should-be-specified-when-a-rec) Unfortunately I do not have A14 device yet, though I would implement fix now
@AlexBreedveld can you please test the fix on your device? You can download debug APK here
@AlexBreedveld can you please test the fix on your device? You can download debug APK here
With the compiled APK you've provided it is still crashing. And yes, I am using Android 14. I can try to implement a fix later today, as you've said that you don't have an Android 14 device to test with.
FATAL EXCEPTION: main
Process: com.polar.nextcloudservices, PID: 2485
java.lang.RuntimeException: Unable to create service com.polar.nextcloudservices.Services.NotificationPollService: android.app.MissingForegroundServiceTypeException: Starting FGS without a type callerApp=ProcessRecord{2c4a494 2485:com.polar.nextcloudservices/u0a500} targetSDK=34
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4705)
at android.app.ActivityThread.-$$Nest$mhandleCreateService(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2289)
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:8248)
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:971)
Caused by: android.app.MissingForegroundServiceTypeException: Starting FGS without a type callerApp=ProcessRecord{2c4a494 2485:com.polar.nextcloudservices/u0a500} 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: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.setServiceForeground(IActivityManager.java:6790)
at android.app.Service.startForeground(Service.java:775)
at com.polar.nextcloudservices.Services.NotificationPollService.onCreate(NotificationPollService.java:124)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4692)
... 9 more
@AlexBreedveld can you please test once more? I have fixed the manifest. You can download APK here
That worked! I've attached the logs of the app after a fresh install on my device.
Thankyou very much for testing!
The latest release has totally broken the app, crashing right on startup.
Logs: