class RubyPushNotifications::FCM::FCMPusher
This class is responsible for sending notifications to the FCM
service.
@author Carlos Alonso
Public Class Methods
Public Instance Methods
push(notifications)
click to toggle source
Actually pushes the given notifications. Assigns every notification an array with the result of each individual notification.
@param notifications [Array]. Array of FCMNotification
to send.
# File lib/ruby-push-notifications/fcm/fcm_pusher.rb, line 22 def push(notifications) notifications.each do |notif| notif.results = FCMConnection.post notif.as_fcm_json, @key end end