i have an app that creates notifications while the app is not visible and has
updates...my main question is how to tell the
app.launch() which page has to load and the parameters for that page any idea?
var notification = navigator.mozNotification;
var n = notification.createNotification(title,body,iconPath);
n.onclick = function ()
{
navigator.mozApps.getSelf().onsuccess = function(evt) {
var app = evt.target.result;
app.launch();
};
};
n.show();
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g