tizentizen-wearable-sdktizen-emulator

How to make call on Tizen wear?


I need to make call on Tizen wear. With call permission and following code I am launching call to any arbitrary number on a button click. Nothing happens so far on emulator.

static void Make_SOS_Call(void *data, Evas_Object *obj, void *event_info) {

app_control_h app_control = NULL;
app_control_create(&app_control);
app_control_set_app_id(app_control, "com.samsung.call");
app_control_add_extra_data(app_control, "number", "999");
app_control_add_extra_data(app_control, "launch-type", "MO");
if(app_control_send_launch_request(app_control, NULL, NULL) == APP_CONTROL_ERROR_NONE){
    dlog_print(DLOG_DEBUG, LOG_TAG, "starting call");
}

app_control_destroy(app_control);
}

How do I open call dialogue and make calls successfully?


Solution

  • Could you read Tizen Common App Control page and try sample code for Call? https://docs.tizen.org/application/native/guides/app-management/common-appcontrols#call

    `

    app_control_set_operation(request, APP_CONTROL_OPERATION_CALL);
    app_control_set_uri(request, "tel:0123456789");
    
    app_control_send_launch_request(request, NULL, NULL);
    app_control_destroy(request);
    

    `