Use JSON for notification payload

This commit is contained in:
Karina Kwiatek 2022-12-22 22:48:24 +00:00
parent dc80c1dba3
commit 8c2bfcb452
1 changed files with 1 additions and 1 deletions

View File

@ -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