79088815

Date: 2024-10-15 07:30:10
Score: 1.5
Natty:
Report link

It doesn't make that much sense but just adding the following to the top of it made it work.

FirebaseMessaging messaging = FirebaseMessaging.instance;


await messaging.requestPermission(
alert: true,
announcement: false,
badge: true,
carPlay: false,
criticalAlert: false,
provisional: false,
sound: true,
);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Parsa Taghizadeh