gdelataillade / alarm

A Flutter plugin to easily manage alarms on iOS and Android
https://pub.dev/packages/alarm
MIT License
132 stars 86 forks source link

v4.0.3 bugs #251

Closed aykutuludag closed 1 month ago

aykutuludag commented 1 month ago

Alarm plugin version v4.0.3

Describe the bug Bugs from crashlytics

Additional context Until now, no iOS crash detected. For Android bugs, please see below:

JsonReader.unexpectedTokenError

Fatal Exception: java.lang.RuntimeException: Unable to start service com.gdelataillade.alarm.alarm.AlarmService@1ec0e222 with Intent { cmp=APP.PACKAGE.NAME/com.gdelataillade.alarm.alarm.AlarmService (has extras) }: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 108 path $.stopButton
See https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure
       at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3975)
       at android.app.ActivityThread.access$2300(ActivityThread.java:218)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1842)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:145)
       at android.app.ActivityThread.main(ActivityThread.java:7007)
       at java.lang.reflect.Method.invoke(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:372)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)

Apperantly, this issue only happening on older Android versions.

image

If any more issues occur, I will write here. Best regards.

gdelataillade commented 1 month ago

Hi @aykutuludag

I just released version 4.0.4 which should fix your crash on older Android versions.

aykutuludag commented 1 month ago

I applied v4.0.4. Apperantly crash reports seems to be gone. Have a nice day.