I have some in-App notification to show to users at a specific time but nothing is shown when the App is closed.
Setting alarm:
Intent alarmIntent =
Your device won't allow you to trigger the alarm since it need to save some battery power. So, go to SETTINGS ->Battery/power saver->Apps then choose your app, after that select "no restriction"