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
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ shared:
# Token auth params
# See https://developer.apple.com/documentation/usernotifications/establishing-a-token-based-connection-to-apns
key_id: <%= Rails.application.credentials.dig(:action_push_native, :apns, :key_id) %>
encryption_key: <%= Rails.application.credentials.dig(:action_push_native, :apns, :encryption_key) %>
encryption_key: <%= Rails.application.credentials.dig(:action_push_native, :apns, :encryption_key)&.dump %>

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: <%= Rails.application.credentials.dig(:action_push_native, :fcm, :encryption_key) %>
encryption_key: <%= Rails.application.credentials.dig(:action_push_native, :fcm, :encryption_key)&.dump %>

# Firebase project_id
project_id: your_project_id
Expand Down Expand Up @@ -131,31 +131,31 @@ shared:
# Token auth params
# See https://developer.apple.com/documentation/usernotifications/establishing-a-token-based-connection-to-apns
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) %>
encryption_key: <%= Rails.application.credentials.dig(:action_push_native, :apns, :calendar, :encryption_key)&.dump %>
# 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: <%= Rails.application.credentials.dig(:action_push_native, :apns, :email, :key_id) %>
encryption_key: <%= Rails.application.credentials.dig(:action_push_native, :apns, :email, :encryption_key) %>
encryption_key: <%= Rails.application.credentials.dig(:action_push_native, :apns, :email, :encryption_key)&.dump %>
# 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: <%= Rails.application.credentials.dig(:action_push_native, :fcm, :calendar, :encryption_key) %>
encryption_key: <%= Rails.application.credentials.dig(:action_push_native, :fcm, :calendar, :encryption_key)&.dump %>

# 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: <%= Rails.application.credentials.dig(:action_push_native, :fcm, :email, :encryption_key) %>
encryption_key: <%= Rails.application.credentials.dig(:action_push_native, :fcm, :email, :encryption_key)&.dump %>

# Firebase project_id
project_id: email_project_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ shared:
# Token auth params
# See https://developer.apple.com/documentation/usernotifications/establishing-a-token-based-connection-to-apns
key_id: <%%= Rails.application.credentials.dig(:action_push_native, :apns, :key_id) %>
encryption_key: <%%= Rails.application.credentials.dig(:action_push_native, :apns, :encryption_key) %>
encryption_key: <%%= Rails.application.credentials.dig(:action_push_native, :apns, :encryption_key)&.dump %>

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

# Firebase project_id
project_id: your_project_id
Expand Down
4 changes: 2 additions & 2 deletions test/dummy/config/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ shared:
# Token auth params
# See https://developer.apple.com/documentation/usernotifications/establishing-a-token-based-connection-to-apns
key_id: <%= Rails.application.credentials.dig(:action_push_native, :apns, :key_id) %>
encryption_key: <%= Rails.application.credentials.dig(:action_push_native, :apns, :encryption_key) %>
encryption_key: <%= Rails.application.credentials.dig(:action_push_native, :apns, :encryption_key)&.dump %>

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

# Set this to the number of threads used to process notifications (default: 5).
# When the pool size is too small a HTTPX::PoolTimeoutError error will be raised.
Expand Down