Hi,
I have read the tutorial about the automatic foreground services -
https://www.b4x.com/android/forum/threads/automatic-foreground-mode.90546/#content
I have a service running and I have the code:
Sub Service_Destroy
StartServiceAt(Me, DateTime.Now + 5 * 1000, False) 'will start after 5 seconds.
End Sub
As you have noticed I put that code in Service_Destroy.
I was hoping to keep this service running 24/7 and never have it stop running.
The issue I have is, about 1 minute after the app is closed (not showing on the screen) this service is killed and Service_Destroy is called.
This then starts the service again 5 seconds later since my code is telling it to start again. However a notification is then shown in the system notification tray.
Is there a way in running the service again without this notification showing, but keep the service running?
Or, is there a way in changing the text of the notification rather than just the app title?