ret = app_control_send_launch_request(service, [](app_control_h request,
app_control_h reply, app_control_result_e result, void* user_data) {
double* callbackId = static_cast<double*>(user_data);
- if (result == APP_CONTROL_RESULT_SUCCEEDED) {
- char* type = NULL;
- int ret = app_control_get_extra_data(reply, "nfc_status",
- &type);
- if (ret != APP_CONTROL_ERROR_NONE) {
- LoggerE("app_control_get_extra_data failed: %d", ret);
- PostMessage(callbackId);
- return;
- }
- LoggerD("app_control result: %s", type);
- } else {
+ if (result != APP_CONTROL_RESULT_SUCCEEDED) {
LoggerE("NFC enable app control failed : %d", result);
PostMessage(callbackId);
return;