requestNotificationPermission method
Request notification permission
Implementation
Future<bool> requestNotificationPermission() async {
try {
final result = await methodChannel
.invokeMethod<bool>('requestNotificationPermission');
return result ?? false;
} on PlatformException catch (e) {
if (e.code == 'PERMISSION_DENIED') {
throw MCPPermissionDeniedException('notification');
}
throw MCPPlatformException(
'Failed to request notification permission', e.code, e.details);
}
}