Android Question Simple Notification System

BitsAndBytes

Active Member
Licensed User
I use this code to setup a notification
B4X:
Dim x As Notification
       x.Initialize
       x.Icon = "icon"
       x.AutoCancel=False
       x.Sound=True
       x.Vibrate=True
       x.SetInfo("TITLE","SUBTITLE","")
       x.Notify(1)

But now i have a problem because i want to show this notification to user device once a week and i dont know where to start. Thank you! :)
 

DonManfred

Expert
Licensed User
Longtime User
Store the time you want to show it again (long) in a db or kvs
use a resheduling service

In the service check if the time < storedestinationtime then reshedule service in 3 hours.
if the service reaches the time you can show the notification and set a new destinationtime
 
Upvote 0

Similar Threads

Top