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

Failed Change Title and Body on Notification (Alarm version 3.0.14) #191

Open
steveng15 opened this issue Apr 26, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working needs author feedback Further information or answer is requested by author

Comments

@steveng15
Copy link

Alarm plugin version
3.0.14

Describe the bug
I want to change the title and body that comes out when the notification appears. I have used Alarm.setNotificationOnAppKillConrent and that didn't work. I placed Alarm.init in the main.dart file, this is main.dart code:
main

Where do I put Alarm.setNotificationOnAppKillContent? Is it when the alarm goes off which is on ring.dart
ring
I try use static data for Alarm.setNotificationOnAppKillContent and it's not work.

Expected behavior
Title and body can be changed according to my expectation. In addition, the flutter icon logo can be removed.

Screenshots
WhatsApp Image 2024-04-26 at 10 23 58

@steveng15 steveng15 added the bug Something isn't working label Apr 26, 2024
@gdelataillade
Copy link
Owner

Hi @steveng15

The Alarm.setNotificationOnAppKillContent is for the specific notification that shows when the app gets killed; if you enabled enableNotificationOnKill parameter (enabled by default). It should be called just after Alarm.init.

For the notification that shows when alarms rings, you have to set the notificationTitle and notificationBody parameters.

About the Flutter notification icon, I'll take a look at it but how did you setup your app icons ?

@gdelataillade gdelataillade added the needs author feedback Further information or answer is requested by author label Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs author feedback Further information or answer is requested by author
Projects
None yet
Development

No branches or pull requests

2 participants