Hi,
I have created an app running a service that constantly checking day and time, at a preset day and time, the app should go to Main Activity to check data in a database.
If a certain conditions are met, I want a phone notification sent.
What I have noticed is this
at the preset time,
the app calls the sub in Main --CallSubDelayed(Main, "Calld")
the app checks the database and unfortunately even when the certain conditions are met, a notification is not sent; I get the notification only after I open the app again.
How do I get the phone to send the notification? I have tried sending the notification from the Calld Sub but that didnt work. I also tried it from the service no luck either.
Also, do I have to call the service again after checking data in the database?
Thank you
I have created an app running a service that constantly checking day and time, at a preset day and time, the app should go to Main Activity to check data in a database.
If a certain conditions are met, I want a phone notification sent.
What I have noticed is this
at the preset time,
the app calls the sub in Main --CallSubDelayed(Main, "Calld")
the app checks the database and unfortunately even when the certain conditions are met, a notification is not sent; I get the notification only after I open the app again.
How do I get the phone to send the notification? I have tried sending the notification from the Calld Sub but that didnt work. I also tried it from the service no luck either.
Also, do I have to call the service again after checking data in the database?
Thank you
Attachments
Last edited: