Hi Guys,
I am upgrading my app to new SDKs and I have to changed lot of stuff. everything seems to work eventualy.
But the app (services, process ?) got killed after 10-15 minut after the phone is locked.
testing on Android 9+
I were following the new Tracker tutorial + foreground app tutorial.
According to one of Erel notes I have moved all the important variables to Starter Process_Globals and access them from Tracker and Activity.
Because process should be immortal and Starter too.
Whats happening now is that:
- The app got killed and and bridge logger stop working without any previous notice or error
- Then it starts again I assume when this line in Tracker ticks
StartServiceAt(Me, DateTime.Now + 30 * DateTime.TicksPerMinute, True)
- can it be shorter ? like 5 minutes? It do always restart ? or start the service only when the service is not runing ? and if its not runing do nothing ?
- but it start just partialy it seems like after 2. start I am missing then some variables for sure I am missing those stored in object Ridici that is defined in Starter service
Sub Process_Globals
Public Ridic As RidicCs 'using class in class module
End Sub
Sub Service_Create
Ridic.Initialize
End Sub
The values are pulled from the server after login and set in Activity after login
Its hard to tell whats happening exactly without logs.
Same behavior in debug and release.
Any ideas ?
thx