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

Configure adapters with adapter options e.g. config.apn.adapter_options #7

Open yuki24 opened 7 years ago

yuki24 commented 7 years ago

There may be a case where options need to be passed to the client gem and user should be able to configure it using config.apn.adapter_options. An example to configure the size of connection pool for the apnotic gem could look like the following:

Fourseam::Platforms.configure do |config|
  config.apn.adapter = :aptonic
  config.apn.adapter_options = {
    size: 5,
    timeout: 5
  }

  ...
end