Use JSON for notification payload
This commit is contained in:
parent
dc80c1dba3
commit
8c2bfcb452
|
@ -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 New Issue