Add following code in the app.js for TAUBasic and main.js for BasicUI projects.
var adapter = tizen.bluetooth.getDefaultAdapter();
tizen.humanactivitymonitor.start(‘HRM’, function a(b) {}, function c(d) {});
Run in debug mode on Galaxy Watch Active 2
BasicUI project throws WebAPIException “Permission denied” on humanactivitymonitor start, but successfully runs bluetooth.
TAUBasic throws the same exception (WebAPIException “Permission denied”) on the bluetooth line, but successfully starts humanactivitymonitor.
Is it possible to get both privileges in Tizen Web project?
Before Tizen 4.0, the pop-up requesting the user’s consent to use privacy-related privileges was triggered by first access to protected resources or functionality. Since Tizen 4.0, you can decide the moment in the application life-cycle when permissions are granted.
@Iqbal In my case the ppm property under tizen object (tizen.ppm) is undefined.
I get this error in console: TypeError: Cannot read property 'requestPermission' of undefined
This is the call: