resolve log

This commit is contained in:
jantunesmesias 2024-08-21 14:50:18 -03:00
parent a15ef73061
commit 5c409e4b55
1 changed files with 3 additions and 20 deletions

View File

@ -53,21 +53,11 @@ class NotificationService {
static Future<void> onActionReceivedMethod(
ReceivedAction receivedAction) async {
// debugPrint('onActionReceivedMethod');
// final payload = receivedAction.payload ?? {};
// if (payload['navigate'] == 'true') {
// locator<NavigationService>().navigateToWithParams(notificationRoute, {'title': payload['title']!, 'body': payload['body']!});
// }
final payload = receivedAction.payload ?? {};
final extra = receivedAction.body;
final handleClick = payload['click_action'];
final localId = jsonDecode(payload['local']!)['CLI_ID'];
// try {
// localId = jsonDecode(payload['local']!)['CLI_ID'];
// } catch (e) {
// localId = payload['local']['CLI_ID'].toString();
// }
log('payload: $payload');
log('extra: $extra');
@ -311,24 +301,17 @@ class NotificationService {
break;
}
log("onActionReceivedMethod");
// showAlertDialog(AppState().context!, 'Test', 'Test', () async {});
}
static Future<void> onNotificationCreatedMethod(
ReceivedNotification receivedNotification) async {
log('onNotificationCreatedMethod');
}
ReceivedNotification receivedNotification) async {}
static Future<void> onNotificationDisplayedMethod(
ReceivedNotification receivedNotification) async {
log('onNotificationDisplayedMethod');
}
ReceivedNotification receivedNotification) async {}
static Future<void> onDismissActionReceivedMethod(
ReceivedAction receivedAction) async {
log('onDismissActionReceivedMethod');
}
ReceivedAction receivedAction) async {}
static Future<void> show({
required final String title,