I have a simple code that when clicked, is supposed to laucnch the messaging app on my watch
Could someone please advise why my code is not working?
what am I missing??
This is my index.html code:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <link rel="stylesheet" type="text/css" href="css/style.css"> <script src="js/main.js"></script> </head> <body> <div id="page" > <p id="para">Launch Messaging</p> </div> </body> </html>
This is my main.js code:
(function() { function launchApp() {tizen.application.launch("com.samsung.message");} function init() { window.getElementById('page').addEventListener('click', launchApp); } // Launch messaging app window.onload = init(); }());