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

User should be able to configure default url options #10

Closed yuki24 closed 6 years ago

yuki24 commented 7 years ago

Same as ActionMailer:

Fourseam::Platforms.configure do |config|
  config.default_url_options = {
    host: ENV['CANONICAL_URL']
  }

  ...
end
yuki24 commented 6 years ago

Workaround:

class ApplicationNotifier < Pushing::Base
  self.default_url_options[:host] = "example.org"
  self.asset_host = "https://example.org"

  ...
end
yuki24 commented 6 years ago

fixed by https://github.com/yuki24/pushing/commit/0054cddfea836eae1a9b6e4993afa3246927df95