Created
August 4, 2015 16:40
-
-
Save brunojppb/ac4e8b2644e7916a16ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/initializers/apns.rb | |
# Default value is 'gateway.sandbox.push.apple.com' | |
APNS.host = "gateway.sandbox.push.apple.com" | |
# Path to your development.pem file | |
APNS.pem = File.join(Rails.root, "development.pem") | |
# if your iOS App is available on the App Store, Use the production.pem | |
# and change the host | |
if Rails.env.production? | |
APNS.host = "gateway.push.apple.com" | |
APNS.pem = File.join(Rails.root, "production.pem") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment