解决方法
首先,你需要得到两件事
1)FIREBASE_SERVER_API_KEY
2)FIREBASE_NOTIFICATION_URL.
1)FIREBASE_SERVER_API_KEY
2)FIREBASE_NOTIFICATION_URL.
{"Authorization" => "key=#{FIREBASE_SERVER_API_KEY}","Content-Type" => "application/json"}
并在身体传递这些
{"registration_ids": ["pass-device-token"],"priority":"high","data":{}}