Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ shared:
apple:
# Token auth params
# See https://developer.apple.com/documentation/usernotifications/establishing-a-token-based-connection-to-apns
key_id: your_key_id
encryption_key: your_apple_encryption_key
key_id: <%= Rails.application.credentials.dig(:action_push_native, :apns, :key_id) %>
encryption_key: <%= Rails.application.credentials.dig(:action_push_native, :apns, :encryption_key) %>

team_id: your_apple_team_id
# Your identifier found on https://developer.apple.com/account/resources/identifiers/list
Expand All @@ -85,7 +85,7 @@ shared:
google:
# Your Firebase project service account credentials
# See https://firebase.google.com/docs/cloud-messaging/auth-server
encryption_key: your_service_account_json_file
encryption_key: <%= Rails.application.credentials.dig(:action_push_native, :fcm, :encryption_key) %>

# Firebase project_id
project_id: your_project_id
Expand Down Expand Up @@ -130,32 +130,32 @@ shared:
calendar:
# Token auth params
# See https://developer.apple.com/documentation/usernotifications/establishing-a-token-based-connection-to-apns
key_id: calendar_key_id
encryption_key: calendar_apple_encryption_key
key_id: <%= Rails.application.credentials.dig(:action_push_native, :apns, :calendar, :key_id) %>
encryption_key: <%= Rails.application.credentials.dig(:action_push_native, :apns, :calendar, :encryption_key) %>
# Your identifier found on https://developer.apple.com/account/resources/identifiers/list
topic: calendar.bundle.identifier

email:
# Token auth params
# See https://developer.apple.com/documentation/usernotifications/establishing-a-token-based-connection-to-apns
key_id: email_key_id
encryption_key: email_apple_encryption_key
key_id: <%= Rails.application.credentials.dig(:action_push_native, :apns, :email, :key_id) %>
encryption_key: <%= Rails.application.credentials.dig(:action_push_native, :apns, :email, :encryption_key) %>
# Your identifier found on https://developer.apple.com/account/resources/identifiers/list
topic: email.bundle.identifier

google:
calendar:
# Your Firebase project service account credentials
# See https://firebase.google.com/docs/cloud-messaging/auth-server
encryption_key: calendar_service_account_json_file
encryption_key: <%= Rails.application.credentials.dig(:action_push_native, :fcm, :calendar, :encryption_key) %>

# Firebase project_id
project_id: calendar_project_id

email:
# Your Firebase project service account credentials
# See https://firebase.google.com/docs/cloud-messaging/auth-server
encryption_key: email_service_account_json_file
encryption_key: <%= Rails.application.credentials.dig(:action_push_native, :fcm, :email, :encryption_key) %>

# Firebase project_id
project_id: email_project_id
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
shared:
# Use bin/rails credentials:edit to set the apns secrets (as action_push_native:apns:key_id|encryption_key)
apple:
# Token auth params
# See https://developer.apple.com/documentation/usernotifications/establishing-a-token-based-connection-to-apns
key_id: your_key_id
encryption_key: your_apple_encryption_key
key_id: <%%= Rails.application.credentials.dig(:action_push_native, :apns, :key_id) %>
encryption_key: <%%= Rails.application.credentials.dig(:action_push_native, :apns, :encryption_key) %>

team_id: your_apple_team_id
# Your identifier found on https://developer.apple.com/account/resources/identifiers/list
Expand All @@ -20,12 +21,13 @@ shared:
# Please note that anything built directly from Xcode and loaded on your phone will have
# the app generate DEVELOPMENT tokens, while everything else (TestFlight, Apple Store, ...)
# will be considered as PRODUCTION environment.
# connect_to_development_server: <%# Rails.env.development? %>
# connect_to_development_server: <%%# Rails.env.development? %>

# Use bin/rails credentials:edit to set the fcm secrets (as action_push_native:fcm:encryption_key)
google:
# Your Firebase project service account credentials
# See https://firebase.google.com/docs/cloud-messaging/auth-server
encryption_key: your_service_account_json_file
encryption_key: <%%= Rails.application.credentials.dig(:action_push_native, :fcm, :encryption_key) %>

# Firebase project_id
project_id: your_project_id
Expand Down
8 changes: 5 additions & 3 deletions test/dummy/config/push.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
shared:
# Use bin/rails credentials:edit to set the apns secrets (as action_push_native:apns:key_id|encryption_key)
apple:
# Token auth params
# See https://developer.apple.com/documentation/usernotifications/establishing-a-token-based-connection-to-apns
key_id: your_key_id
encryption_key: your_apple_encryption_key
key_id: <%= Rails.application.credentials.dig(:action_push_native, :apns, :key_id) %>
encryption_key: <%= Rails.application.credentials.dig(:action_push_native, :apns, :encryption_key) %>

team_id: your_apple_team_id
# Your identifier found on https://developer.apple.com/account/resources/identifiers/list
Expand All @@ -22,10 +23,11 @@ shared:
# will be considered as PRODUCTION environment.
# connect_to_development_server: <%# Rails.env.development? %>

# Use bin/rails credentials:edit to set the fcm secrets (as action_push_native:fcm:encryption_key)
google:
# Your Firebase project service account credentials
# See https://firebase.google.com/docs/cloud-messaging/auth-server
encryption_key: your_service_account_json_file
encryption_key: <%= Rails.application.credentials.dig(:action_push_native, :fcm, :encryption_key) %>

# Firebase project_id
project_id: your_project_id
Expand Down