# Local Notifications

**URL:** <https://forum.ionicframework.com/t/local-notifications/103257>\
**Category:** Ionic Native\
**Created:** [August 25, 2017, 9:21pm UTC](https://forum.ionicframework.com/t/local-notifications/103257 "2017-08-25T21:21:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![twbocklertorch](https://avatars.discourse-cdn.com/v4/letter/t/dc4da7/32.png) [@twbocklertorch](https://forum.ionicframework.com/u/twbocklertorch)\
**Post date:** [August 25, 2017, 9:21pm UTC](https://forum.ionicframework.com/t/local-notifications/103257/1 "2017-08-25T21:21:21Z")

</div>

I’m finding the documentation for this very confusing.  
Refer to this:

> **[Ionic Framework](https://ionicframework.com/docs/native/local-notifications/)**
>
> Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards

The documentation only shows examples of how to schedule a notification but does not show examples of how to update an existing one. And also, what exactly is the difference between a “clear(id)” vs. “cancel(id)”, and a “isPresent(id)” vs “isScheduled(id)”?

Would a good example of updating or scheduling a notification be something like this?  
this.localNotifications.isPresent(notifId).then(isPresent =\> {  
alert(isPresent); // update()  
}, isntPresent =\> {  
alert(isntPresent); // schedule  
});

---

<div class="post-metadata">

**Author:** ![twbocklertorch](https://avatars.discourse-cdn.com/v4/letter/t/dc4da7/32.png) [@twbocklertorch](https://forum.ionicframework.com/u/twbocklertorch)\
**Post date:** [August 25, 2017, 9:54pm UTC](https://forum.ionicframework.com/t/local-notifications/103257/2 "2017-08-25T21:54:52Z")

</div>

OK, so here is a working example, for future devs:

// Check for presence of existing reminder and either update or schedule  
this.localNotifications.isPresent(notifId).then(isPresent =\> {  
//alert("isPresent: " + isPresent);  
if (!isPresent){  
this.localNotifications.schedule({  
id: notifId,  
text: 'Meeting with ’ + prospect.FirstName + " " + prospect.LastName,  
at: new Date(reminderTime.toString()),  
});  
}  
else {  
this.localNotifications.update({  
id: notifId,  
text: 'Meeting with ’ + prospect.FirstName + " " + prospect.LastName,  
at: new Date(reminderTime.toString()),  
});  
}  
});
