update notification
This commit is contained in:
@@ -28,6 +28,7 @@ void main() async {
|
||||
showLocalNotification:
|
||||
(!kIsWeb && Platform.isAndroid) ? showLocalNotification : null,
|
||||
persistenceEnabled: true,
|
||||
backgroundKeepAlive: Duration(seconds: 3),
|
||||
);
|
||||
|
||||
if (userId != null) {
|
||||
|
||||
@@ -33,7 +33,8 @@ void showLocalNotification(Message message, ChannelModel channel) async {
|
||||
}
|
||||
|
||||
Future backgroundHandler(Map<String, dynamic> notification) async {
|
||||
final messageId = notification['data']['message_id'];
|
||||
print('new notification ${notification}');
|
||||
final messageId = notification['data']['id'];
|
||||
|
||||
final notificationData =
|
||||
await NotificationService.getAndStoreMessage(messageId);
|
||||
|
||||
Reference in New Issue
Block a user