deliverOnlineOnly property

bool deliverOnlineOnly
getter/setter pair

~english Whether the message is delivered only when the recipient(s) is/are online:

  • true:The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is discarded.
  • false (Default) :The message is delivered when the recipient(s) is/are online. If the recipient(s) is/are offline, the message will not be delivered to them until they get online. ~end

~chinese 消息是否只投递给在线用户:

  • true:只有消息接收方在线时才能投递成功。若接收方离线,则消息会被丢弃。
  • false(默认):如果用户在线,则直接投递;如果用户离线,消息会在用户上线时投递。 ~end

Implementation

bool deliverOnlineOnly = false;