# Ionic 3 Local Notification (with buttons)

**URL:** <https://forum.ionicframework.com/t/ionic-3-local-notification-with-buttons/126989>\
**Category:** ionic-v3\
**Created:** [April 5, 2018, 1:14pm UTC](https://forum.ionicframework.com/t/ionic-3-local-notification-with-buttons/126989 "2018-04-05T13:14:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ponchia](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@Ponchia](https://forum.ionicframework.com/u/Ponchia)\
**Post date:** [April 5, 2018, 1:14pm UTC](https://forum.ionicframework.com/t/ionic-3-local-notification-with-buttons/126989/1 "2018-04-05T13:14:08Z")

</div>

Hello everybody!

I’m looking for a way of creating a notification “spotify-like”, meaning with a button which will trigger a function inside my app, to be specific this function will be either a call or a sms.

Is it possibile?

I’m reading right now the [katzer plugin](https://github.com/katzer/cordova-plugin-local-notifications) which is state to not beign compatible with ionic native, what does that mean?

I just wanted some clarification, sorry for bothering ya all 🙂

Edit:  
I found out I could not use actions, which is what I wanted right now using Ionic.  
Thus in order to make actions works, I needed to add thus:

```auto
actions?: any[]

```

Inside the .d.ts file of local-notifications

Right now I’ll try to handle the button clicked option, and then i want to make the notification persistent (like that you can’t simply swipe to make it disappear, like the system one).

If anyone have already faced this situation I would gladly hear out how they have done it 🙂

Edit2:  
I learned that only android can have sticky notification, good enough.

I still had to add:

```auto
sticky?: boolean;

```

In the module declaration to make it works, is there any better solution?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:42pm UTC](https://forum.ionicframework.com/t/ionic-3-local-notification-with-buttons/126989/2 "2021-07-19T21:42:02Z")

</div>


