Sound or Vibration or notification changed Trigger

Post your questions and help other users.

Moderator: Martin

Post Reply
eldron
Posts: 45
Joined: 27 Apr 2015 08:21

Sound or Vibration or notification changed Trigger

Post by eldron » 02 Jul 2016 10:32

Hi,
I am trying to set up a flow which is triggered by a Poi alert (getting closer than x meters to a GPS coordinate) in Locus (very popular GPS app).
I can´t seem to find any trigger though, that would allow me to start the flow.
Locus plays a specific sound and/or vibration pattern when you get close to the point. So I was hoping that I could use the sound or vibration to trigger a flow but couldn´t find anything.
Locus also displays a notification in the statusbar. So my next attempt was to use that to launch the flow. But Locus permantly displays the notification and just updates the content instead of creating a new notification. So the content just changes from e.g. 0 points in range to 2 points in range. I tried different settings for both the "notification on statusbar displayed" and "notification on statusbar removed" triggers, but didn´t succeed.
Any ideas on which trigger I could use to launch the flow?

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

Re: Sound or Vibration or notification changed Trigger

Post by Martin » 03 Jul 2016 11:53

Hi,

Triggering on the notification is probably the most promising way since updating a notification should execute trigger Notification on Statusbar Displayed in most cases when the content changes. For testing I recommend to select the package name of Locus but leave all other filters in the trigger empty (default). Add an action Vibrate, Notification on Screen or condition Debug Dialog to see if the flow is executed.

Checking that sound is playing is only possible in a condition but not with a trigger since Android provides no good way to detect it without polling.

Regards,
Martin

eldron
Posts: 45
Joined: 27 Apr 2015 08:21

Re: Sound or Vibration or notification changed Trigger

Post by eldron » 04 Jul 2016 19:20

Hi,
I had tried the notification trigger, but it kept triggering every 2 seconds. I thought that I had done something wrong, but the developer of locus has just confirmed to me that the notification is set to update on changes AND every 2 seconds... He is going to change it in the next version, so I´ll wait until then and try again.
Thanks for your help!

Post Reply