Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App immediately crashes on launch #228

Closed
iqfareez opened this issue Feb 16, 2024 · 2 comments
Closed

App immediately crashes on launch #228

iqfareez opened this issue Feb 16, 2024 · 2 comments
Assignees
Labels
bug Something isn't working critical Need quic fix!

Comments

@iqfareez
Copy link
Member

A user leave a review on Google Play:

image

Fortunately, I can reproduce the issue. This issue only occurs on Android 14 or greater.

  1. Install the app. You can grab the release here
  2. Launch the app
  3. When it comes to the notification page on the onboarding screen. It will ask the permission to allow alarm & reminders.
    Screenshot_1708045038
  4. Don't give permission. Just press back button.
  5. Continue the onboarding.
  6. Go to homescreen, add a new prayer time widget.
    Screenshot_1708045578
  7. Open the app. After few moments, it will crash.

Error log

adb shell
logcat | grep live.iqfareez.waktu
02-16 00:49:07.567 18296 18296 E AndroidRuntime: Process: live.iqfareez.waktusolatmalaysia, PID: 18296
02-16 00:49:07.567 18296 18296 E AndroidRuntime: java.lang.RuntimeException: Unable to start receiver live.iqfareez.waktusolatmalaysia.SolatHorizontalWidget: java.lang.SecurityException: Caller live.iqfareez.waktusolatmalaysia needs to hold android.permission.SCHEDULE_EXACT_ALARM or android.permission.USE_EXACT_ALARM to set exact alarms.
02-16 00:49:07.567 18296 18296 E AndroidRuntime: Caused by: java.lang.SecurityException: Caller live.iqfareez.waktusolatmalaysia needs to hold android.permission.SCHEDULE_EXACT_ALARM or android.permission.USE_EXACT_ALARM to set exact alarms.
02-16 00:49:07.567 18296 18296 E AndroidRuntime:        at live.iqfareez.waktusolatmalaysia.SolatHorizontalWidgetKt.scheduleNextUpdate(SolatHorizontalWidget.kt:211)
02-16 00:49:07.567 18296 18296 E AndroidRuntime:        at live.iqfareez.waktusolatmalaysia.SolatHorizontalWidgetKt.access$scheduleNextUpdate(SolatHorizontalWidget.kt:1)
02-16 00:49:07.567 18296 18296 E AndroidRuntime:        at live.iqfareez.waktusolatmalaysia.SolatHorizontalWidget.onUpdate(SolatHorizontalWidget.kt:45)
02-16 00:49:07.567 18296 18296 E AndroidRuntime:        at live.iqfareez.waktusolatmalaysia.SolatHorizontalWidget.onReceive(SolatHorizontalWidget.kt:57)
02-16 00:49:10.432   555  1531 W ActivityTaskManager:   Force finishing activity live.iqfareez.waktusolatmalaysia/.MainActivity
02-16 00:49:10.697   555  1551 I ActivityManager: Process live.iqfareez.waktusolatmalaysia (pid 18296) has died: fg  TOP
@iqfareez iqfareez added bug Something isn't working critical Need quic fix! labels Feb 16, 2024
@iqfareez iqfareez self-assigned this Feb 16, 2024
@iqfareez
Copy link
Member Author

Fixed on latest release https://waktusolat.app/en/changelog#2.12.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working critical Need quic fix!
Projects
None yet
Development

No branches or pull requests

1 participant