this is a problem since some users cant update their phones



El Miércoles 6 de noviembre de 2013 15:40, Julien Wajsberg 
<[email protected]> escribió:
 
Nope, you can't in v1.0 and v1.1. You need the new Notification API to
do this.

The new Notification API will also let you replace a notification.


Le 06/11/2013 15:18, jose llopis a écrit :
> hi im developing some kind of hack to implement repeated notifications on 1.0 
> and 1.1
> but i did not see any function to dismiss a moznotification 
>
> Is there any method to achieve this?
>
> btw i post here my code (althought it hast not implemented yet the icon 
> feature) :
>
> var compatNotif={};
>             compatNotif.createNotification=function(id,title,txt,icon){return 
>navigator.mozNotification.createNotification(title,txt);}
>             compatNotif.idList=[];
>            
>             document.getElementById("btn").onclick=function(){
>                  var idN=document.getElementById("idNot").value;
>                  if(idN in compatNotif.idList)
>                  {                    
>                     compatNotif.idList[idN].notification.close();
>                     compatNotif.idList[idN].value++;
>                     
>compatNotif.idList[idN].notification=compatNotif.createNotification(1,"titulo","aaa
> "+compatNotif.idList[idN].value);
>                  }
>                  else
>                  {
>                     compatNotif.idList[idN]={};
>                     
>compatNotif.idList[idN].notification=compatNotif.createNotification(1,"titulo","aaa");
>                     compatNotif.idList[idN].value=1;
>                  }                
>                  compatNotif.idList[idN].notification.show();
>              };
> _______________________________________________
> dev-b2g mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-b2g


_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to