Notification Toggle

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
xpdev
Posts: 59
Joined: 16 Sep 2014 06:20
Location: Italy

Notification Toggle

Post by xpdev » 19 Sep 2014 12:05

Hi

There is a trigger (or a different thing) for when a user
Press a toggle (WiFi,GPS,airplane mode ecc) on pull down window ?

Thanks
Xiaomi MI 6

Rom Miui 10 EU STABLE

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Notification Toggle

Post by MURTUMA » 19 Sep 2014 13:03

Not really, but there is SYSTEM SETTING CHANGED trigger which is what you want.

User avatar
xpdev
Posts: 59
Joined: 16 Sep 2014 06:20
Location: Italy

Re: Notification Toggle

Post by xpdev » 23 Sep 2014 15:47

Hi guys

i'm not able to use in the right way "SYSTEM SETTING CHANGED" to see when user click on
a toggle (WiFi,GPS,airplane mode ecc) on pull down window.

Someone help me ?

I'm on a custom rom KK 4.4.4

Thanks.
Xiaomi MI 6

Rom Miui 10 EU STABLE

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Notification Toggle

Post by MURTUMA » 23 Sep 2014 18:29

If the trigger doesn't work it's either a bug in the trigger or you're doing it wrong.

Please tell more specifically what doesn't work and what have you tried to do?

User avatar
kintrupf
Posts: 257
Joined: 10 Sep 2013 08:59

Re: Notification Toggle

Post by kintrupf » 23 Sep 2014 19:23

xpdev wrote:There is a trigger (or a different thing) for when a user
Press a toggle (WiFi,GPS,airplane mode ecc) on pull down window ?
There are triggers for almost all settings:

Trigger for Bluetooth:
Bluetooth State
Bluetooth Device Connected
Bluetooth Device Disconnected

Trigger for GPS:
Location Provider State

Trigger for NFC:
NFC State

Trigger for WiFi:
WiFi State
WiFi Connected
WiFi Disconnected

Trigger for Airplane Mode:
Airplane Mode (what else ;-))

Take a look here, all available triggers are listed and explained:
http://automagic4android.com/en/help/co ... s-triggers

User avatar
xpdev
Posts: 59
Joined: 16 Sep 2014 06:20
Location: Italy

Re: Notification Toggle

Post by xpdev » 23 Sep 2014 20:25

MURTUMA wrote:If the trigger doesn't work it's either a bug in the trigger or you're doing it wrong.

Please tell more specifically what doesn't work and what have you tried to do?

I'm not able to find parameters for "SYSTEM SETTING CHANGED", Category and name.

I need to get user click on Wifi toggle.


Thanks
Xiaomi MI 6

Rom Miui 10 EU STABLE

User avatar
xpdev
Posts: 59
Joined: 16 Sep 2014 06:20
Location: Italy

Re: Notification Toggle

Post by xpdev » 24 Sep 2014 07:16

OK, i have found the way.

For mobile data

trigger "System Setting Changed"
category "Global"
name "mobile_data"
Xiaomi MI 6

Rom Miui 10 EU STABLE

Post Reply