How to run app when screen is turn off

Hi, I’m using ionic 3 I want to get local notification when the screen is turn off. I used background mode enable but it only works when the screen is on as screen goes off can’t get notification.
Any help would be appreciated.