So your idea is to use Firebase and send a notification just to prevent the app to go in "suspended state" and be killed?Just throwing an idea out. If the phone is connected to the network constantly, then use something like Firebase Cloud Messaging to sent a message to the device at a particular interval (in your case every five minutes). This way the app would not have to be running at all and the incoming FCM message would wake up the app, it can do it's processing and just stop again. Some pointers:
BTW, I'm pretty sure I've read @agraham state that he has no background apps running and does all his processing via FCM. I guess with this type of solution, you would need something that would generate the FCM message(s) at the given interval desired.
Because if yes, at this point any notification can wake up the application (right?)
In the code there is this command:
StartServiceAt(Me, DateTime.Now + 10 * DateTime.TicksPerMinute, True)
And in the service start event there is:
Service.StartForeground(nid, CreateNotification(" ..."))