Hey everybody;
I’m not sure if this is the right forum to post to, apologies if it is not.
I’ve been trying to receive (any kind of) calendar information using either Native Tizen or the Tizen Web Application. For some reason, no matter what I try, I receive PRIVACY_PRIVILEGE_MANAGER_REQUEST_RESULT_DENY_FOREVER when I check the privilege of calendar.read.
What I have done:
I have added the http://tizen.org/privilege/calendar.read
permission to the tizen-manifest.xml
.
native application:
I a tizen native application based on a sample (AmbientAnalogWatch and multiple others). In this application I’ve imported both calendar.h
and
in the main()
I call
const char *privilege = "http://tizen.org/privilege/calendar.read";
ppm_request_permission(privilege, ppm_request_response_cb, NULL);
With the definitions
void ppm_request_response_handler(ppm_call_cause_e cause, ppm_request_result_e result, const char *privilege, void *user_data)
{
dlog_print(DLOG_DEBUG, TAG, "In the ppm_request_response_handler.");
}
typedef void(* ppm_request_response)(ppm_call_cause_e cause, ppm_request_result_e result, const char *privilege, void *user_data);
web application
var readPrivilege = "http://tizen.org/privilege/calendar.read";
console.log("permission:" + JSON.stringify(tizen.ppm.checkPermission(readPrivilege)));
if (tizen.ppm.checkPermission(readPrivilege) != "PPM_ALLOW") {
console.log("requesting permission");
tizen.ppm.requestPermission(readPrivilege, readRPSuccess, readRPError);
} else {
console.log("already allowed!");
}
result
each of these results in the deny result:
PRIVACY_PRIVILEGE_MANAGER_REQUEST_RESULT_DENY_FOREVER
This sucks. I have no more ideas what to try, has anybody been able to do this?
Thank you very much in advance for any input!
Best wishes,
Raphael