yuki24 / pushing

Finally, push notification framework that does not hurt. currently supports Android (FCM) and iOS (APNs)
MIT License
46 stars 6 forks source link

Override headers for an APN request #13

Closed yuki24 closed 7 years ago

yuki24 commented 7 years ago

Similar to #12, but for other headers:

class WeatherNotifier < Fourseam::Base
  def weather_update(device_id)
    @device = Device.find(device_id)

    ...

    push apn: { device_token: @device.token, 'apns-topic': @device.topic, 'apns-priority':  5 }
  end
end