Class: Wor::Push::Notifications::Aws::IosPushJsonBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/wor/push/notifications/aws/ios_push_json_builder.rb

Class Method Summary collapse

Class Method Details

.build_json(message_content) ⇒ Object



7
8
9
10
11
12
# File 'lib/wor/push/notifications/aws/ios_push_json_builder.rb', line 7

def build_json(message_content)
  unless Wor::Push::Notifications::Aws.aws_ios_sandbox
    return { APNS: aps_content(message_content) }
  end
  { APNS_SANDBOX: aps_content(message_content) }
end