GPS enable/disable fire no event

Post your questions and help other users.

Moderator: Martin

Post Reply
HariMaier
Posts: 2
Joined: 06 Nov 2017 23:25

GPS enable/disable fire no event

Post by HariMaier » 07 Nov 2017 20:57

Changing the GPS state do not activate the "GPS state changed" trigger.
Is this a known problem. How to solve it?

Samsung Galaxy S5
Android 6.0.1
Root access

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: GPS enable/disable fire no event

Post by Desmanto » 09 Nov 2017 06:57

At mine, using GPS event Started or stopped, can trigger the flow. Pureshot Plus 2, LP 5.1.

I would assume you have grant the proper permission to automagic. Tried the condition Location provider enabled - GPS, when GPS is on or off, and check using put vibrate on true and notification on screen in false branch. See which branch get executed.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: GPS enable/disable fire no event

Post by Martin » 09 Nov 2017 20:25

Hi,

Are you using trigger GPS Status Event to detect when the device actually starts to use GPS or do you want to detect when the location mode of the device is changed with trigger Location Provider State: GPS Enabled?

Regards,
Martin

HariMaier
Posts: 2
Joined: 06 Nov 2017 23:25

Re: GPS enable/disable fire no event

Post by HariMaier » 09 Nov 2017 21:12

Hi Martin,

I want to get a trigger if the GPS gets enabled.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: GPS enable/disable fire no event

Post by Desmanto » 11 Nov 2017 01:49

You want it to be triggered when GPS is toggled on? Then you should use Trigger : Location Provider State - GPS - Enabled. Try this trigger and toggle the GPS. At mine, enabling the GPS from quick setting or from other automagic flow (root), will trigger the flow.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply