From 8c2bfcb452637e69e2fbe15914ff0c3d73ed0638 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Thu, 22 Dec 2022 22:48:24 +0000 Subject: [PATCH] Use JSON for notification payload --- app/models/user/push_notification_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user/push_notification_methods.rb b/app/models/user/push_notification_methods.rb index dcf0fec9..32b630bd 100644 --- a/app/models/user/push_notification_methods.rb +++ b/app/models/user/push_notification_methods.rb @@ -9,7 +9,7 @@ module User::PushNotificationMethods n.app = app n.registration_ids = [s.subscription.symbolize_keys] n.data = { - message: resource.as_push_notification + message: resource.as_push_notification.to_json } n.save! end