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 AndroidManifest.xml
should be like this:
<receiver android:name=".ReminderAlarmManager">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<service android:name=".OrderReminderNotificationService "/>
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"
The alarm manager doesn't trigger the Intent services on certain phones. I was testing the app on a Oneplus 3T the entire day before I realized there was nothing wrong with the code. Just tested the same app on a Moto G, and it works as expected.