I’m trying to build an ionic2 application which send notifications when my ibeacon is detected,the app is sending me many instance of the samenotifiction at the same time.
i want to customize my notification so when i click the ok button the notifications stop
there is my code:
public schedule(title, text) {
LocalNotifications.schedule({
title,
text,
at: new Date(new Date().getTime() + 1* 1000)
});
}
LocalNotifications.on("click", (notification, state) => {
let alert = this.alertCtrl.create({
title: this.todos[1].info.nom_du_musee,
subTitle: this.todos[1].info.periode_ouverture+" "+this.todos[1].info.adr+" site web "+this.todos[1].info.sitweb,
buttons: ["OK"]
});
alert.present()
});
}
How can i add actions to my button ok?