lib/exponent-server-sdk.rb
def send_messages(messages, **args)
        # https://docs.expo.io/versions/latest/guides/push-notifications/#message-format
        raise TooManyMessagesError, 'Only 100 message objects at a time allowed.' if messages.length > 100

        response = push_notifications(messages)

        # each call to send_messages will return a new instance of ResponseHandler
        handler = args[:response_handler] || ResponseHandler.new
        handler.process_response(response)
        handler
      end
# returns response handler that provides access to errors? and other response inspection methods
returns response handler that provides access to errors. and other response inspection methods
returns response handler that provides access to errors . and other response inspection methods
def send_messages(messages, **args)
        raise TooManyMessagesError, 'Only 100 message objects at a time allowed.' if messages.length > 100
        response = push_notifications(messages)
        handler = args[:response_handler] || ResponseHandler.new
        handler.process_response(response)
        handler
      end
def send_messages ( messages , ** args ) raise TooManyMessagesError , 'Only 100 message objects at a time allowed.' if messages . length > 100 response = push_notifications ( messages ) handler = args [ :response_handler ] || ResponseHandler . new handler . process_response ( response ) handler end
returns response handler that provides access to errors?
returns response handler that provides access to errors?
# https://docs.expo.io/versions/latest/guides/push-notifications/#message-format # each call to send_messages will return a new instance of ResponseHandler
messages
args