instantiate builder with push message data. By default all push channels (gcm, apns, jpush, mqtt) is enabled. All other properties configured by method of this class won't be set and default value would be applied. Details of properties of message and its default value, please refer to http://documentation.kii.com/rest/#notification_management-leverage__push_to_users__notification-group_scope-send_messages-send_a_push_message_to_the_current_topic
sent to all push channels (gcm, apns, jpush, mqtt).
Set alert for APNS subscribers. If this method is not called, no alert is applied. For details please refer to APNS document of alert.
alert object
builder instance.
Set badge for APNS subscribers. If this method is not called, no badge is applied. For details please refer to APNS document of badge.
builder instance.
Set category for APNS subscribers. If this method is not called, no category is applied. For details please refer to APNS document of category.
builder instance.
Set content-available for APNS subscribers. If this method is not called, no content-available is applied.
If eqaul or less than 0 or this method is not invoked, content-available payload is not delivered. Otherwise, content-available=1 payload is delivered.
builder instance.
Set specific data for APNS subscribers. If this method is not called, no specific data is not applied and data passed to the constructor would be sent to subscribers.
specific data applied to only APNS subscribers. Contents should be JSON Object with only one-level of nesting, and only strings, integers, booleans or doubles in the values.
builder instance.
Set mutable-content for APNS subscribers. If this method is not called, no mutable-content is applied.
If equal or less than 0 or this method is not invoked, mutable-content payload is not delivered. Otherwise, mutable-content=1 payload is delivered.
builder instance.
Set sound for APNS subscribers. If this method is not called, no sound is applied. For details please refer to APNS document of sound.
builder instance.
build push message.
push message object. Can be used in KiiTopic.sendMessage
Enable/ Disable message distribution via APNS. If this method is not called, true will be applied as default.
flag indicate whether distribute this message to APNS subscribers.
builder instance.
Enable/ Disable message distribution via GCM. If this method is not called, true will be applied as default.
flag indicate whether distribute this message to GCM subscribers.
builder instance.
Enable/ Disable message distribution via JPush. If this method is not called, true will be applied as default.
flag indicate whether distribute this message to JPush subscribers.
builder instance.
Enable/ Disable message distribution via MQTT. If this method is not called, true will be applied as default.
flag indicate whether distribute this message to MQTT subscribers.
builder instance.
Set collapse_key for GCM subscribers. If this method is not called, no collapse_key is applied. For details please refer to GCM document of collapse_key.
builder instance.
Set specific data for GCM subscribers. If this method is not called, no specific data is not applied and data passed to the constructor would be sent to subscribers.
specific data applied to only GCM subscribers. Contents should be JSON Object with only one-level of nesting, and only strings in values
builder instance.
Set delay_while_idle for GCM subscribers. If this method is not called, no delay_while_idle is applied. For details please refer to GCM document of delay_while_idle.
builder instance.
Set restricted_package_name for GCM subscribers. If this method is not called, no restricted_package_name is applied. For details please refer to GCM document of restricted_package_name.
builder instance.
Set time_to_live for GCM subscribers. If this method is not called, no time_to_live is applied. For details please refer to GCM document of time_to_live.
builder instance.
Set specific data for JPush subscribers. If this method is not called, no specific data is not applied and data passed to the constructor would be sent to subscribers.
specific data applied to only JPush subscribers. Contents should be JSON Object with only one-level of nesting, and only strings, integers, booleans or doubles in the values.
builder instance.
Set specific data for MQTT subscribers. If this method is not called, no specific data is not applied and data passed to the constructor would be sent to subscribers.
specific data applied to only MQTT subscribers. Contents should be JSON Object with only one-level of nesting, and only strings in the values.
builder instance.
Indicate whether send this message to development environment. If this method is not called, true will be applied as default.
indicate whether send this message to development env.
builder instance.
Indicate whether send this message to production environment. If this method is not called, true will be applied as default.
indicate whether send this message to production env.
builder instance.
Generated using TypeDoc
Builder of push message