Specify a payload of arbitrary data to be sent to the target application.
BPS_API int notification_message_set_invocation_payload(notification_message_t *message, const void *payload, int length)
A pointer to the notification_message_t structure that you want to set the payload for.
The data to be handed to the application via invocation framework on launch. The buffer is automatically encoded to base64 to match the invocation framework.
The size of the payload data in bytes.
Library:libbps (For the qcc command, use the -l bps option to link against this library)
The notification_message_set_invocation_payload() function specifies a payload to be sent to the target application via the invocation framework. A payload is arbitrary data, which this function converts into base64 for consumption by the invocation framework.
If you don't call this function, a payload URI is sent instead, or if you haven't specified one (using the notification_message_set_invocation_payload_uri() function), no data is delivered on invocation.
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.
Last modified: 2014-09-30