requestPermission method
Implementation
Future<bool> requestPermission() async {
try {
if (!isSupported) {
printDebug("Notifications not supported", tag: tag);
return false;
}
final perm = await Notification.requestPermission();
return (perm == "granted");
} catch (e) {
printDebug("Failed to request notifications permission", tag: tag);
printDebug(e);
return false;
}
}