From 590d052d2521d7368f1bd7df10e13563438cc942 Mon Sep 17 00:00:00 2001 From: Phil Reynolds Date: Tue, 23 Jan 2024 09:29:32 +0000 Subject: [PATCH] Correct .format to .json in ios.md --- docs/delivery_methods/ios.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/delivery_methods/ios.md b/docs/delivery_methods/ios.md index de0681d..050fbc7 100644 --- a/docs/delivery_methods/ios.md +++ b/docs/delivery_methods/ios.md @@ -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")} }