Closed OdaiTu closed 6 years ago
Hi @OdaiTu a functional example with this version
this.push.create('Test', { body: 'Ici il y a du nouveau !!', icon:"android-chrome-192x192.png"}).subscribe(
res => {
if(res.event.type=="click"){
res.notification.close();
window.open(this.siteUrl + 'news/' + res.data[0].id)
}
},
err => console.log(err)
)
@anode7 thank you so much for jumping in on this one, I will add this to the documentation as well this weekend 👍
solved now thanks
thank you i want when click to notification to open a new window i did this code but is doesnt work
`let opiotns= { body: res.data[0].title, icon: this.imgUrl + '100x100/' + res.data[0].image, timeOut: 5000, showProgressBar: true, clickToClose: true, preventLastDuplicates: true