Tizen Push Message not received on the Device

Tizen Push Message not received on the Device

BY 07 Feb 2019 Native Application Development

I have made an app which receives messages pushed to Tizen Push.
The POST request response has status code 1000 with a message saying “Success” but the message received callback is not called i.e. message is not received by the device.
I have checked the device registration id for correct server id.
Please help me with this.
Using the latest Tizen Studio, trying the code on Galaxy watch on Tizen wearable 4.0

Callback Function – 

static void
_noti_cb(push_service_notification_h noti, void *user_data)
{
    int ret;

    char *data=NULL;
    char *msg=NULL;
    long long int time_stamp;
    char *sender=NULL;
    char *session_info=NULL;
    char *request_id=NULL;

    ret = push_service_get_notification_data(noti, &data);
    ret = push_service_get_notification_message(noti, &msg);
    ret = push_service_get_notification_time(noti, &time_stamp);
    ret = push_service_get_notification_sender(noti, &sender);
    ret = push_service_get_notification_session_info(noti, &session_info);
    ret = push_service_get_notification_request_id(noti, &request_id);

    dlog_print(DLOG_INFO, LOG_TAG,”%s”, data);
    elm_object_text_set(for_general->label,data);

    if (data)
        free(data);
    if (msg)
        free(msg);
    if (sender)
        free(sender);
    if (session_info)
        free(session_info);
    if (request_id)
        free(request_id);
}

Connection Initiation –

push_service_connect(PUSH_APP_ID, _state_cb, _noti_cb, NULL, &push_conn);

JSON Payload that I am sending –

{ “regID”:”DEVICE_REG_ID”, “requestID”: “1”, “appData”: “Hello Text” }

Written by