Exception: Gcm::Errors::MessageTooBig

Inherits:
StandardError
  • Object
show all
Defined in:
lib/gcm_rails_mongo_mapper/gcm_rails_mongo_mapper.rb

Overview

The payload of the message is too big, the limit is currently 4096 bytes. Reduce the size of the message.

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ MessageTooBig

:nodoc:



48
49
50
# File 'lib/gcm_rails_mongo_mapper/gcm_rails_mongo_mapper.rb', line 48

def initialize(message) # :nodoc:
  super("The maximum size allowed for a notification payload is 4096 bytes: '#{message}'")
end