onNotificationSelected method
Implementation
Future<bool> onNotificationSelected(String? payload) async {
if (payload == null) {
debugPrint('notification payload: $payload');
return false;
}
this.selectNotificationSubject.add(payload);
this.navigationCallback?.call(
NotificationPayloadBehaviorObject().notificationData.value,
NotificationPayloadBehaviorObject().notificationTitle.value,
NotificationPayloadBehaviorObject().notificationBody.value);
return true;
}