`if (app_context_get_pid(app_context, &pid) != APP_MANAGER_ERROR_NONE) {`