Languages

Menu
Sites
Language
tizen.ppm undefined in Web App for Tizen TV

Hi, I'm stuck at trying to get Voice Commands running, in my case the tizen object has no ppm property.

Before that the emulator complained about lack of permissions with error 18. This is what I got so far: 

function requestPermit(uri) {
	  return new Promise(function(resolve, reject) {
	    tizen.ppm.requestPermission(uri,
	      function(success) { resolve(success); },
	      function(error) { reject(error); });
	  });
	}

var start = function() {
	return requestPermit('http://tizen.org/privilege/voicecontrol.tts')
	    .then(function() { return init(); })
	    .catch(function(err) { return console.log(err); });
}

$(document).bind( 'pageinit', start );