Fixed issues in iOS - Reading/Writing MaxMessageID.