Reputation: 1666
I'm working on a Tizen Hybrid App (Web UI + Native Service) for Gear S3 Frontier watch. I'm getting the sensor privileges in the Web UI and the launched Native Service somehow gets the same privileges. But since I've reset my watch, I'm not getting the privileges in the service application, so the Tizen service is unable to access the sensors.
My Web UI Code:
function init() {
//Get Privileges
getPrivileges();
//Laucnh Service Application
startService();
}
The Web UI asks for the privileges and launches the Service Application but when I check for the privileges in service app, the result is PRIVACY_PRIVILEGE_MANAGER_CHECK_RESULT_ASK
.
I'm wondering why the same code works fine for the Emulator
..
Upvotes: 1
Views: 239
Reputation: 11
Did you implement your code according to the guide page?
web app: https://developer.tizen.org/development/guides/web-application/security/privacy-related-permissions
native app: https://developer.tizen.org/development/guides/native-application/security/privacy-related-permissions
If an app receives RESULT_ASK, it should call ppm_request_permission API to get user's consent.
This feature was enable since Tizen 4.0, so this behavior can be different as per the Tizen version of device/emulator.
Upvotes: 1