1. Marc James
  2. PowerServer Mobile (Obsolete)
  3. Thursday, 20 February 2020 10:51 AM UTC

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.

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 20 February 2020 18:43 PM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 1

Hi Marc;

   At this time, when your mobile App is running in the background ... timer events will stop.

   Have you tried using the "Timing" object instead?

Regards ... Chris

Comment
  1. Chris Pollach @Appeon
  2. Friday, 21 February 2020 16:47 PM UTC
Hi Marc ... FYI: That Class (feature) was introduced sometime either in the PB 4.0 or 5.0 time frame. My brain cells are getting to old to remember exactly - LOL!
  1. Helpful
  1. Marc James
  2. Friday, 21 February 2020 17:47 PM UTC
Thanks, do you have a link to any example projects with it working in?

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
  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 21 February 2020 18:27 PM UTC
Hi Marc;

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
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.