Skip to content

Commit

Permalink
Correct .format to .json in ios.md
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-6 committed Jan 23, 2024
1 parent 3155239 commit 590d052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/delivery_methods/ios.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_
class CommentNotification
deliver_by :ios do |config|
config.device_tokens = ->(recipient) { recipient.notification_tokens.where(platform: :iOS).pluck(:token) }
config.format = ->(apn) {
config.json = ->(apn) {
apn.alert = "Hello world"
apn.custom_payload = {url: root_url(host: "example.org")}
}
Expand Down

0 comments on commit 590d052

Please sign in to comment.