Failed Change Title and Body on Notification (Alarm version 3.0.14) #191
Labels
bug
Something isn't working
needs author feedback
Further information or answer is requested by author
Alarm plugin version
3.0.14
Describe the bug
![main](https://private-user-images.githubusercontent.com/48742816/325840940-79c9c801-5e4d-433c-b067-35a186de2e85.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwNDMyOTMsIm5iZiI6MTcyNDA0Mjk5MywicGF0aCI6Ii80ODc0MjgxNi8zMjU4NDA5NDAtNzljOWM4MDEtNWU0ZC00MzNjLWIwNjctMzVhMTg2ZGUyZTg1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE5VDA0NDk1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVhMDAzNmNiMmU5MmFmYWRhNWU3NmFhMWVjMzYxNmU2MDViODllNDc2NzY3NzJkMjJiYzgzNGYyNTE1YmNlNzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.TXPebaio1GWChYaE2i54cUTIQDqH6CTZze5ZgrxgzEw)
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 themain.dart
file, this ismain.dart
code:Where do I put Alarm.setNotificationOnAppKillContent? Is it when the alarm goes off which is on ring.dart
![ring](https://private-user-images.githubusercontent.com/48742816/325841042-eb821606-433d-493f-a239-13d4ca62798c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwNDMyOTMsIm5iZiI6MTcyNDA0Mjk5MywicGF0aCI6Ii80ODc0MjgxNi8zMjU4NDEwNDItZWI4MjE2MDYtNDMzZC00OTNmLWEyMzktMTNkNGNhNjI3OThjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE5VDA0NDk1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZiZDA1MGI2Yzc1YTExMWI2MGJlZWQ4Y2U1ZDdlYWNhZWNmMjFlMmY0ZjU1M2YwYjJkYjkyYmYzZDZkNDNlYTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.lZ2lyoF194U5ck5_ZcoUSh36dryfMVKxAWdXgoEOSRw)
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](https://private-user-images.githubusercontent.com/48742816/325840172-3bd490f1-d96c-4098-a917-64610f571df1.jpeg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwNDMyOTMsIm5iZiI6MTcyNDA0Mjk5MywicGF0aCI6Ii80ODc0MjgxNi8zMjU4NDAxNzItM2JkNDkwZjEtZDk2Yy00MDk4LWE5MTctNjQ2MTBmNTcxZGYxLmpwZWc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxOVQwNDQ5NTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iZTdkNDY3NzM3Y2U1NTM4NWRjZjA0MzExZTE3ZTYyMjgxZTEwZjg3ZDFiM2M1YzZjNWFiZmEzNWJmMjJiZjQ4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.8AFuBU-N8Bf4cWMqprTfQsltqQRqRrEOPTUWDobwBhI)
The text was updated successfully, but these errors were encountered: