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.app = app
|
||||||
n.registration_ids = [s.subscription.symbolize_keys]
|
n.registration_ids = [s.subscription.symbolize_keys]
|
||||||
n.data = {
|
n.data = {
|
||||||
message: resource.as_push_notification
|
message: resource.as_push_notification.to_json
|
||||||
}
|
}
|
||||||
n.save!
|
n.save!
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue