# Local Notification issue

**URL:** <https://forum.ionicframework.com/t/local-notification-issue/87473>\
**Category:** ionic-v3\
**Created:** [April 22, 2017, 6:18pm UTC](https://forum.ionicframework.com/t/local-notification-issue/87473 "2017-04-22T18:18:26Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![philipgriffin](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/philipgriffin/32/110462_2.png) [@philipgriffin](https://forum.ionicframework.com/u/philipgriffin)\
**Post date:** [June 10, 2017, 9:09pm UTC](https://forum.ionicframework.com/t/local-notification-issue/87473/4 "2017-06-10T21:09:10Z")

</div>

@techsnake

I have found a solution that worked for me it gave me both things I was looking for, a heads up notification and the notifications working when the device is locked and screen is dimmed.

It had one minor drawback in that the device doesnt light up when the notification is received but the sound plays and it works when scheduled. (EDIT: On second look this may be just my phone as it happens with all notifications from any application)

My solution was to uninstall the ionic-native plugin for local notifications and use this fork [https://github.com/DavidBriglio/cordova-plugin-local-notifications](https://github.com/DavidBriglio/cordova-plugin-local-notifications)

Add to your project:

```auto

cordova plugin add https://github.com/DavidBriglio/cordova-plugin-local-notifications

```

Then in the page you’re using local notifications:

Put this up top:  
`declare var cordova;`

then:

```auto
this.plt.ready().then(()=> {
         (<any>cordova).plugins.notification.local.schedule({
         id: 1,
         title: "Title",
         text: "Text",
         headsup: true
         at: Date.now()
       });
   });

```

---

_[View the full topic](https://forum.ionicframework.com/t/local-notification-issue/87473)._
