Hello, I'm in development at the moment of a vehicle tracking app which plots icons onto google maps from an XML file, I generate it in PowerBuilder and put it in the http-server folder which runs some JavaScript to plot the markers.
On my Mobile app, I use a timer() every 5 seconds to grab my GPS coordinates and then populate them into the database, but it's annoying that the refresh gif comes up in the middle of the screen all the time, can this be moved or changed to be small / different gif animation?
Maybe someone could suggest a better way of collecting their GPS coordinates that isn't in a timer()?
Also - is there a way to get the lat lng with the app minimised, but still running in the background? At the moment it doesn't seem to update if we minimise the app.
https://docs.appeon.com/appeon_online_help/pb2019r2/powerscript_reference/ch09s131.html
I am trying to follow this but am struggling. When I add into the objects constructor event I get undefined variable.
https://i.ibb.co/pjM21qJ/image.png
See image where I got to so far.
Would be good if i could see this in a simple working project
I have a Timing "ancestor" that encapsulates all that any App needs to run this feature. You can see the "ns_timing_master" object base class in my STD framework within the "STD_FC_PB_Base.pbl" library. Then have a look at my OrderEntry Demo app that instantiates and uses this ancestor class.
FYI: https://sourceforge.net/projects/stdfndclass/files/Applications/PowerBuilder/OrderEntry
HTH ... Chris