@@ -26,22 +26,22 @@ def initialize(notification)
2626
2727 def as_json
2828 deep_compact ( {
29- message : {
30- token : notification . token ,
31- # FCM requires data values to be strings.
32- data : notification . custom_payload . compact . transform_values ( &:to_s ) ,
33- android : {
34- notification : {
35- title : notification . title ,
36- body : notification . body ,
37- notification_count : notification . badge ,
38- sound : notification . sound
39- } ,
40- collapse_key : notification . thread_id ,
41- priority : notification . high_priority == true ? "high" : "normal"
42- }
43- } . deep_merge ( notification . platform_payload [ :fcm ] )
44- } )
29+ message : {
30+ token : notification . token ,
31+ # FCM requires data values to be strings.
32+ data : notification . custom_payload . compact . transform_values ( &:to_s ) ,
33+ android : {
34+ notification : {
35+ title : notification . title ,
36+ body : notification . body ,
37+ notification_count : notification . badge ,
38+ sound : notification . sound
39+ } ,
40+ collapse_key : notification . thread_id ,
41+ priority : notification . high_priority == true ? "high" : "normal"
42+ }
43+ } . deep_merge ( notification . platform_payload [ :fcm ] )
44+ } )
4545 end
4646
4747 private
0 commit comments