What is a valid message payload when using the iOS (Objective-C) SDK?

 Messages can be an instance of one of the following classes: 

  • NSString
  • NSNumber
  • NSArray
  • NSDictionary
  • NSnil

If you use another JSON serialization kit or do it by yourself, ensure that the JSON complies with all requirements. If a JSON string is malformed, the remote server will return an error. For more info, see the Objective-C documentation.