requestPermission method
Implementation
Future<bool> requestPermission() async {
try {
final perm = await html.Notification.requestPermission();
return (perm == "granted");
} catch (e) {
printDebug("Failed to request notifications permission");
printDebug(e);
return false;
}
}