I'm using Republic Wireless and for anyone not familiar, all calls/txts go via VoIP unless VoIP is unavailable (no wifi for example) and then it switches to cell.
To save battery, I've been switching to airplane mode when on wifi.
My plan is to have tasker switch me to airplane mode when it detects my phone is registered and back to cell when unregistered (independent of wifi connectivity)
I can find out the status from running 'dumpsys notification' and looking for the tickerText line regarding "Wi-Fi calling"
The only way I see to do this would be via an infinite loop:
(pseudo)
start
dumpsys notification
if calling is "enabled" then airplane mode on
if calling is anything other than "enabled" then airplane mode off
go to start
Do you think the cost of running the loop would kill any benefit of going into airplane mode? To make this worthwhile, I have to run it every 30 to 60 seconds. The risk is missing calls if I'm airplane mode and wifi is up but internet connectivity is down
I assume I can do this all with variables so I don't see it hurting my SD card
Any better methods to accomplish this?
Thanks
To save battery, I've been switching to airplane mode when on wifi.
My plan is to have tasker switch me to airplane mode when it detects my phone is registered and back to cell when unregistered (independent of wifi connectivity)
I can find out the status from running 'dumpsys notification' and looking for the tickerText line regarding "Wi-Fi calling"
The only way I see to do this would be via an infinite loop:
(pseudo)
start
dumpsys notification
if calling is "enabled" then airplane mode on
if calling is anything other than "enabled" then airplane mode off
go to start
Do you think the cost of running the loop would kill any benefit of going into airplane mode? To make this worthwhile, I have to run it every 30 to 60 seconds. The risk is missing calls if I'm airplane mode and wifi is up but internet connectivity is down
I assume I can do this all with variables so I don't see it hurting my SD card
Any better methods to accomplish this?
Thanks
