Hello All,
I'm stuck since few days to receive an Intent if the app was closed before by user.
I start with @Erel post to understand "Start receiver at exact time" and I add notification with NB6 library example.
On my code:
- first page is to get Notification permission from user
- then on a second page, 3 buttons are to set a time duration 1Min / 10Min / 1Hour
I expect to get the Intent on ScheduleReceiver and then diplay a notification.
Code is working, if the app is not closed by user, but if the app is closed, then apparently I never receive the ident.....and never get the notification...?
Is that behavior normal ? is it an error in my code ?
I need to get a notifcation after a long period (few hours) and I need to get it even if user close the app.
How to do that ?
My code is attached
Many thanks for your help
I'm stuck since few days to receive an Intent if the app was closed before by user.
I start with @Erel post to understand "Start receiver at exact time" and I add notification with NB6 library example.
On my code:
- first page is to get Notification permission from user
- then on a second page, 3 buttons are to set a time duration 1Min / 10Min / 1Hour
I expect to get the Intent on ScheduleReceiver and then diplay a notification.
Code is working, if the app is not closed by user, but if the app is closed, then apparently I never receive the ident.....and never get the notification...?
Is that behavior normal ? is it an error in my code ?
I need to get a notifcation after a long period (few hours) and I need to get it even if user close the app.
How to do that ?
My code is attached
Many thanks for your help