Hi all.
I have a question - I'm testing my app in ver.12 and found a very strange situation.
In Starter in sub Sub Service_Start (StartingIntent As Intent) I have a line
It works fine in ver.11.80 and if I'm using FLP for GPS coordinates it receives Lat/Long, then disconnects from the service and stops as I expected.
But in ver.12 the same code doesn't work properly - it looks like Service.StopAutomaticForeground doesn't do anything - no crash, no errors. FLP receives lat/long, disconnected from the service and continues to receive coordinates.
Am I doing something wrong?
Please see the attached example - it works fine in 11.80 but not in 12.
Thank you.
I have a question - I'm testing my app in ver.12 and found a very strange situation.
In Starter in sub Sub Service_Start (StartingIntent As Intent) I have a line
B4X:
Service.StopAutomaticForeground 'Starter service can start in the foreground state in some edge cases.
It works fine in ver.11.80 and if I'm using FLP for GPS coordinates it receives Lat/Long, then disconnects from the service and stops as I expected.
But in ver.12 the same code doesn't work properly - it looks like Service.StopAutomaticForeground doesn't do anything - no crash, no errors. FLP receives lat/long, disconnected from the service and continues to receive coordinates.
Am I doing something wrong?
Please see the attached example - it works fine in 11.80 but not in 12.
Thank you.