• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Mods Intent to turn off Hangouts

Is there an Intent that will allow one to turn off Hangouts?

The issue I have is when using Hangouts via PC/tablet, I wish to have the messages stop being received on my mobile. Outside of actually signing out Hangouts on the mobile, I can't find another way to stop this.
 
There was such an intent for Google Talk, that allowed one to sign in/out of GTalk. Is there something like the below for Hangouts?

Code:
am start [COLOR=#660033]-a[/COLOR] android.intent.action.MAIN [COLOR=#660033]-n[/COLOR] com.google.android.talk[COLOR=#000000][B]/[/B][/COLOR]com.google.android.talk.SignoutActivity [COLOR=#660033]-d[/COLOR] content:[COLOR=#000000][B]//[/B][/COLOR]com.google.android.providers.talk[COLOR=#000000][B]/[/B][/COLOR]accounts
 
I just had a quick look through the Hangouts manifest and didn't see anything that looked useful. That's not saying that such a thing doesn't exist, but I couldn't find it.
 
I just had a quick look through the Hangouts manifest and didn't see anything that looked useful. That's not saying that such a thing doesn't exist, but I couldn't find it.
Thanks for checking @codesplice.

I have an alternative working. It's not the best, but at least notifications are turned off. I'm using...Tasker + Secure Settings Tasker Plugin > Package Notification. This conditionally turns off notifications.
 
I have an alternative working. It's not the best, but at least notifications are turned off. I'm using...Tasker + Secure Settings Tasker Plugin > Package Notification. This conditionally turns off notifications.

Nice! I use Secure Settings for a lot of things, but had never used (or even considered) that function. I'm sure I can work that into my routine. Thanks for sharing :)
 
Hmmmmm. Strange. I thought he. Said mobile. And I'm sure he's running 4.3,or better. So I can't see where that wouldn't work?? Android.. System. Yea. I'm pretty close. Unless I've been up to long. Haha

And ALLL android based phones mostly after gingerbread allow for turning notifications off the same way? So I'm still confused?
 
Hmmmmm. Strange. I thought he. Said mobile. And I'm sure he's running 4.3,or better. So I can't see where that wouldn't work?? Android.. System. Yea. I'm pretty close. Unless I've been up to long. Haha

And ALLL android based phones mostly after gingerbread allow for turning notifications off the same way? So I'm still confused?

The goal of the inquiry was to find a way to automate toggling whether to receive notifications or not. Manually disabling the app or disabling notifications doesn't meet that goal.
 
It doesn't?? Its A toggle itself. If I could figure how to post a pic here I'd show you what I mean. I mean. If its checked you get notifications. If its not you don't. Doesn't get much more toggley than that?

You want it to be something done on its own. Good luck with that. Beyond inserting code into the source I don't see it happening.

Hey.. Theirs an idea!!!!! I'll be starting that soon. Write and compile an apk for this. Hmmm. Thanks for the idea. xD
 
You want it to be something done on its own. Good luck with that. Beyond inserting code into the source I don't see it happening.

You used to be able to do it by sending a specially-crafted intent to the Talk service via Tasker, which is why the OP was asking if there was something similar for Hangouts.
 
As an FYI, the reason for seeking a manner to completely disable Hangouts is even if notifications are turned off, the app still receives all communications. A few issues during times I won't be using it...it's a wake lock, it vibrates when using Hangouts via desktop, and it counts against data when not on wifi. Yes, I can turn vibration off, but that's not a toggle either.

A possible alternative would to use Greenify, but then need to figure out something so it won't get hibernated during use.
 
Back
Top Bottom