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 APN's environment per delivery #12

Closed yuki24 closed 7 years ago

yuki24 commented 7 years ago

It's possible that a server needs to send push notifications to apps in different environments.

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

    ...

    push apn: { device_token: @device.token, environment: @device.environment }
  end
end