mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-21 12:57:48 +01:00
Use JSON for notification payload
This commit is contained in:
parent
dc80c1dba3
commit
8c2bfcb452
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue