Re: Problem simulating a location

2020-04-15 Thread Graham Samuel via use-livecode
Panos, this is solid gold as far as I’m concerned! I had no idea that mobileStartTrackingSensor would return control to the script without finishing its job, Wouldn’t it be better, since it isn’t blocking, to provide some sort of status token that could be queried by script? Thanks also for the

Re: Problem simulating a location

2020-04-15 Thread panagiotis merakos via use-livecode
Hello Graham, I have done a couple of tweaks to your code, and I can now successfully read the location data from the simulator. First thing - it is not suggested to call all these 3 commands/functions in one go: mobileStartTrackingSensor mobileSensorReading() mobileStopTrackingSensor as the

Re: Problem simulating a location

2020-04-14 Thread Graham Samuel via use-livecode
Gents, thank you. Good advice, and I’m taking it! I will report back. Graham > On 14 Apr 2020, at 19:39, Andrew at MidWest Coast Media via use-livecode > wrote: > >> >> From: Graham Samuel >> I suppose I can try the test on a real phone, but I would rather stick to >> the simulator for

Re: Problem simulating a location (Graham Samuel)

2020-04-14 Thread Andrew at MidWest Coast Media via use-livecode
> > From: Graham Samuel > I suppose I can try the test on a real phone, but I would rather stick to the > simulator for now. If you have a physical device, regardless of age, try it. There are some things that either don’t work (like camera) or are spotty in the emulator. > And I haven?t

Re: Problem simulating a location

2020-04-14 Thread Rick Harrison via use-livecode
Hi Graham, You should really try it on the phone before knocking yourself out about why it doesn’t work on the simulator. I have found that some things involving sensors simply don’t work on the simulator. Try that, if it doesn’t work on the phone let us know. Good luck! Rick > On Apr 14,

Re: Problem simulating a location

2020-04-14 Thread Graham Samuel via use-livecode
Folks, I am still struggling with this. Alan Stenhouse has been kind enough to help me, but so far I have not got the simulator to simulate any kind of location information. There is a function, mobileCurrentLocation, that is supposed to return an array provided tracking is enabled and

Re: Problem simulating a location

2020-04-13 Thread Alan Stenhouse via use-livecode
Hi Graham IIRC, mobileSensorReading() returns an array so you need to check the keys of the array. Perhaps: if tSensorData["latitude"] is empty then HTH cheers Alan > On Mon, 13 Apr 2020 14:38:56,Graham Samuel > wrote: > > > I?m trying to use the 10.2 XCode