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.
Hi DonManfred, thank you for your light. I had done it with following process and it works like a charm ...
B4X:
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
And I commented StopMessageLoop from JobDone as it closes the loop ...
B4X:
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.