Problem getCurrentApplication().addEventListener

Hello,

I have this Code

window.onload = function() {
var currentApp = tizen.application.getCurrentApplication();
if (currentApp) {
console.log(currentApp);
currentApp.addEventListener(‘launched‘, function() {
console.log(‚Die Anwendung wurde gestartet.‘);
});
}
};

<tizen:privilege name=“Tizen Privilege | Tizen”/>
the privileges are added before the feature elements

And get this exception:

WebAPIException
code 17
TypeMismatchError
Cannot convert launched to dictionary

Any Ideas to fix this problem?

Thanks

@Mina
Since no one responded, I would suggest you look for an answer in the FAQ-Q/A under the most appropriate topic on the Smart TV Seller Office site If you don’t find a solution there then sign in and open a Smart TV Seller Support Request . They can help you better there.

Ron
Samsung Developer Relations