Hi, I have successfully integrated Firebase Notifications to the Android Apps B4J Push. I want to send Push Notifications on every 15 Minutes to wake the device up. How to do it, if anyone helping here. Thank you.
Sub Process_Globals
Private const API_KEY As String = "XXXX"
Private getLocTimer As Timer
End Sub
Sub AppStart (Args() As String)
getLocTimer.Initialize("getLocTimer", 900000) ' Run Every 15 Minutes
getLocTimer.Enabled = True
getLocTimer_Tick
StartMessageLoop
End Sub
Private Sub getLocTimer_Tick
SendMessage("getloc", "Checking Status", "Status Checking - " & DateTime.Now)
End Sub
Sub JobDone(job As HttpJob)
Log(job)
If job.Success Then
Log(job.GetString)
End If
job.Release
' StopMessageLoop '<-- non ui app only
End Sub