Hi,
I am trying to listen to incoming SMS using the example code from
http://www.w3.org/2012/sysapps/messaging/
navigator.setMessageHandler ('received', onMessageReceived)function
onMessageReceived(message) {
if (message.type == 'sms') {
window.console.log('SMS Message from ' +
message.from + ' received'); }
}
I am getting: Uncaught TypeError: undefined is not a function error on
calling navigator.setMessageHandler
Manifest File:
{
"name": "***",
"manifest_version": 1,
"version": "0.1",
"app": {
"launch":{
"local_path": "index.html"
}
},
"xwalk_permissions": [
"Contacts",
"Geolocation",
"Messaging",
"Vibration"
]}
I am very new to crosswalk. I might be doing something wrong here.
Thanks in advance :-)
-sushant
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help