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

Your alarms may not ring You killed the app #202

Closed Zubairpv closed 6 months ago

Zubairpv commented 6 months ago

Alarm plugin version ex: 0.2.9 (please update to the latest version before submitting the issue)

Describe the bug Your alarms may not ring

You killed the app. Please reopen so your alarms can be rescheduled.

IMG_20240514_233647

gdelataillade commented 6 months ago

Hi @Zubairpv

This is a feature I developed for the package. With the latest updates, it's not useful to have this anymore for Android because alarm will always ring. I recommend to set it like this in your AlarmSettings:

enableNotificationOnKill: Platform.isIOS
Zubairpv commented 6 months ago

@gdelataillade alrm not ringing

gdelataillade commented 6 months ago

@Zubairpv Please make sure you carefully read the README and followed the installation steps. Do you have any error logs ?

Zubairpv commented 6 months ago

In my phone its working but after release apk in my friend phone its not working

Zubairpv commented 6 months ago

Alarm set function is working

gdelataillade commented 6 months ago

Did he allowed notifications to show ?

Zubairpv commented 6 months ago

Yes

Zubairpv commented 6 months ago

If he doesn't allow then he will see the app killed notification?

gdelataillade commented 6 months ago

No he won't. It's also mandatory to allow notification on Android so the alarm can trigger.