Hi,
Messaging Api has following definitions.
* xwalk.experimental.messaging.findMessages()
* xwalk.experimental.messaging.sms.send()
But for xwalk extension, there is only way to export api, "exports.findMessage
= function(){}". If I want to bind a function to exports.sms like this,
exports.sms = {}
exports.sms.send = function(){}
I meet this error,
11-27 04:05:39.460: I/chromium(14562): [INFO:CONSOLE(28)]
"xwalk.experimental.messaging.sms:undefined", source: file:///data/1.html (28)
Finally, I found this solution can work,
xwalk.experimental.messaging = new Object();
xwalk.experimental.messaging.sms = new SmsManager();
xwalk.experimental.messaging.sms.send = function(){}
Of cause, that's break the boundary between extension to outer javascript
namespace.
Any official solution here?
Thanks,
Shawn
_______________________________________________
Crosswalk-dev mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev