Page 1 of 1

GPS fix wait

Posted: 14 Nov 2014 08:43
by Nerey
Some applications stops using GPS when running in background, so I need to open it and wait.

I want to create a flow (or set of flows) that help me and do something like this:
- When any application starts to use GPS, display notification in status bar
- When notification selected, show another notification and try to find location with GPS even if later application stop using GPS
- Hide all notifications when GPS is not used or accurate position is available

I don't know how to catch events "GPS available" and "GPS using"

Re: GPS fix wait

Posted: 12 Dec 2014 06:13
by Nerey
No one can help?

Re: GPS fix wait

Posted: 12 Dec 2014 17:18
by Martin
Sorry, I missed your first question.

It's hard to do right now. You could use the passive provider in trigger Periodic Location Update and wait for the first event that has an accuracy that's so good that it was likely delivered by GPS or see when variable location_speed becomes available which is usually only provided by GPS.

The next version of Automagic adds a new trigger GPS Status Event that will be able to detect when the GPS adapter is started (used by an app), stopped and when the first fix is received.
You can use trigger Location Provider to detect when the GPS setting in the settings of Android is turned on or off.

Regards,
Martin

Re: GPS fix wait

Posted: 12 Dec 2014 18:54
by Nerey
The most complex thing for me is to detect a moment when an app start to use the GPS, but didn't recieved coordinates yet

Re: GPS fix wait

Posted: 21 Dec 2014 12:56
by Nerey
The last update gave an opportunity to trigger the using of GPS, it's good
But now there is another problem.
I'm using action Init Variable Location with 15m timeout. It seems to look good but when I try to stop the flow, action continue to run. The only way to stop it - give accurate data by GPS or turn off GPS
Can it be solved?

Re: GPS fix wait

Posted: 21 Dec 2014 16:02
by Martin
I can reproduce this problem. This should be fixed in the next update.

You could try to avoid this issue by using a shorter timeout and by using the action multiple times in a loop. However this will probably not behave the same like using the longer timeout but it might be worth a try.

Re: GPS fix wait

Posted: 21 Dec 2014 16:40
by Nerey
Thank for fast reply
Hope it will be fixed soon
I'll turn off/on GPS until it is done