Facebook App and Facebook Messenger GCM/C2DM and MQTT - Greenify
I'm on Greenify stable 2.5.0 and since last Facebook app update it seems that (at least on my phone/FB account) notifications don't get pushed through GCM anymore, but just through MQTT.
On the other hand, it seems that Messenger still gets the GCM push after about 1 minute if the server cannot reach the Android client on MQTT, so Greenify can work as usual.
Anyway the Messenger GCM push isn't reliable in case the phone is offline: I experimented a lot and it seems that many times, if the phone is off, the next time it is on the app doesn't wake up properly, and I don't get any notification.
So, to recap: for me the Facebook app doesn't work anymore with GCM so it doesn't wake up from hibernation, and the Messenger app works only when there's a reliable connection to the GCM service active.
As a workaround I set up a Tasker script that starts the MQTT service for both apps: once at boot and then once every hour, just to collect any missing notification; the script then rehibernates both apps.
Hi,
same problem with lastest FB & Messenger. No more notifications through GCM. I only get notification when opening FB
burnout said:
Hi,
same problem with lastest FB & Messenger. No more notifications through GCM. I only get notification when opening FB
Click to expand...
Click to collapse
Yeah, the services for C2DM, Amazon ADM, and so on are still present in the apps, but they don't work. I tried manually starting the GCM service without success.
I must say I noted MQTT is very fast and efficient at syncing the read notification between web and app, but it's a pity it doesn't work with Greenify.
Can you post your Tasker script for starting the MQTT service? I still want the app Greenified but also want notifications. Thanks.
padraigdoran said:
Can you post your Tasker script for starting the MQTT service? I still want the app Greenified but also want notifications. Thanks.
Click to expand...
Click to collapse
I use a profile to run this every hour and on device boot:
Code:
Facebook Fixer ()
A1: Secure Settings [ Configuration:Facebook Fix (Root) Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A2: Wait [ MS:0 Seconds:5 Minutes:0 Hours:0 Days:0 ]
A3: Secure Settings [ Configuration:Messenger Fix (Root) Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A4: Wait [ MS:0 Seconds:0 Minutes:2 Hours:0 Days:0 ]
A5: If [ %SCREEN ~ off ]
A6: Hibernate [ Configuration:Facebook Package:com.oasisfeng.greenify Name:Hibernate Timeout (Seconds):0 ]
A7: Hibernate [ Configuration:Messenger Package:com.oasisfeng.greenify Name:Hibernate Timeout (Seconds):0 ]
A8: End If
The Secure Settings plugin (x2) simply run this as root:
Facebook Fix
Code:
am startservice com.facebook.katana/com.facebook.push.mqtt.service.MqttPushService
and:
Messenger Fix
Code:
am startservice com.facebook.orca/com.facebook.push.mqtt.service.MqttPushService
federigo said:
I use a profile to run this every hour and on device boot:
Code:
Facebook Fixer ()
A1: Secure Settings [ Configuration:Facebook Fix (Root) Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A2: Wait [ MS:0 Seconds:5 Minutes:0 Hours:0 Days:0 ]
A3: Secure Settings [ Configuration:Messenger Fix (Root) Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A4: Wait [ MS:0 Seconds:0 Minutes:2 Hours:0 Days:0 ]
A5: If [ %SCREEN ~ off ]
A6: Hibernate [ Configuration:Facebook Package:com.oasisfeng.greenify Name:Hibernate Timeout (Seconds):0 ]
A7: Hibernate [ Configuration:Messenger Package:com.oasisfeng.greenify Name:Hibernate Timeout (Seconds):0 ]
A8: End If
The Secure Settings plugin (x2) simply run this as root:
Facebook Fix
Code:
am startservice com.facebook.katana/com.facebook.push.mqtt.service.MqttPushService
and:
Messenger Fix
Code:
am startservice com.facebook.orca/com.facebook.push.mqtt.service.MqttPushService
Click to expand...
Click to collapse
how do i import this into Tasker?
dustintinsley said:
how do i import this into Tasker?
Click to expand...
Click to collapse
nevermind. figured it out. nice little profile. good job on this.
dustintinsley said:
nevermind. figured it out. nice little profile. good job on this.
Click to expand...
Click to collapse
Thank you
I cant figure it out. How to add? Thank you!
Hello, I would like to know how to add that code into tasker. Thank you.
Hi. I've a problem with facebook app. I greenify it but facebook starts automatically with LollipopUploadService. If i disable this service in the app, facebook crash. How i can fix this problem?
You can get rid of this problem by installing Disable Service app from Play Store, then choose Facebook app and uncheck LollipopUploadService box. You need to do the same thing with Messenger if you got it. I have no crashes at all in both Facebook and Messenger apps.
federigo said:
I use a profile to run this every hour and on device boot:
Code:
Facebook Fixer ()
A1: Secure Settings [ Configuration:Facebook Fix (Root) Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A2: Wait [ MS:0 Seconds:5 Minutes:0 Hours:0 Days:0 ]
A3: Secure Settings [ Configuration:Messenger Fix (Root) Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A4: Wait [ MS:0 Seconds:0 Minutes:2 Hours:0 Days:0 ]
A5: If [ %SCREEN ~ off ]
A6: Hibernate [ Configuration:Facebook Package:com.oasisfeng.greenify Name:Hibernate Timeout (Seconds):0 ]
A7: Hibernate [ Configuration:Messenger Package:com.oasisfeng.greenify Name:Hibernate Timeout (Seconds):0 ]
A8: End If
The Secure Settings plugin (x2) simply run this as root:
Facebook Fix
Code:
am startservice com.facebook.katana/com.facebook.push.mqtt.service.MqttPushService
and:
Messenger Fix
Code:
am startservice com.facebook.orca/com.facebook.push.mqtt.service.MqttPushService
Click to expand...
Click to collapse
dustintinsley said:
nevermind. figured it out. nice little profile. good job on this.
Click to expand...
Click to collapse
Would either of you be so kind as to elaborate how to set this up? I have Tasker and the Secure Settings Plugin installed, but don't know how to proceed from there, either through manually setting it up or somehow importing it.
Thank you.
Pitreq said:
You can get rid of this problem by installing Disable Service app from Play Store, then choose Facebook app and uncheck LollipopUploadService box. You need to do the same thing with Messenger if you got it. I have no crashes at all in both Facebook and Messenger apps.
Click to expand...
Click to collapse
Do we still receive push notifications of Messenger or Fb ?
Yes. It works fine with Messenger. Chat heads work fine, too.
Wysłane z mojego Nexus 4 przy użyciu Tapatalka
Pitreq said:
Yes. It works fine with Messenger. Chat heads work fine, too.
Wysłane z mojego Nexus 4 przy użyciu Tapatalka
Click to expand...
Click to collapse
Is it working anymore ? i have only fb messenger app and if i hibernate that i cant get messages( i get while using and when i open screen it show latest messages)
I have donation package, working any olders apk ?
Umbra. said:
Would either of you be so kind as to elaborate how to set this up? I have Tasker and the Secure Settings Plugin installed, but don't know how to proceed from there, either through manually setting it up or somehow importing it.
Thank you.
Click to expand...
Click to collapse
Would love to know how to set this up too.
federigo said:
I use a profile to run this every hour and on device boot:
Code:
Facebook Fixer ()
A1: Secure Settings [ Configuration:Facebook Fix (Root) Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A2: Wait [ MS:0 Seconds:5 Minutes:0 Hours:0 Days:0 ]
A3: Secure Settings [ Configuration:Messenger Fix (Root) Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A4: Wait [ MS:0 Seconds:0 Minutes:2 Hours:0 Days:0 ]
A5: If [ %SCREEN ~ off ]
A6: Hibernate [ Configuration:Facebook Package:com.oasisfeng.greenify Name:Hibernate Timeout (Seconds):0 ]
A7: Hibernate [ Configuration:Messenger Package:com.oasisfeng.greenify Name:Hibernate Timeout (Seconds):0 ]
A8: End If
The Secure Settings plugin (x2) simply run this as root:
Facebook Fix
Code:
am startservice com.facebook.katana/com.facebook.push.mqtt.service.MqttPushService
and:
Messenger Fix
Code:
am startservice com.facebook.orca/com.facebook.push.mqtt.service.MqttPushService
Click to expand...
Click to collapse
Can you post how to set up Tasker with these scripts. Would be much appreciated.
Pitreq said:
Yes. It works fine with Messenger. Chat heads work fine, too.
Wysłane z mojego Nexus 4 przy użyciu Tapatalka
Click to expand...
Click to collapse
How You set up this, for working messenger with greenify ?
If you got lucky patcher, can also disable the service. Works well for me. No crashes. Never pops up again. Also try the lite version. It was a good decision for me.
Related
Le Max 2 task kill killing whatsapp and facebook messenger background processes
Hi guys, I am using the small eui rom v26. I recently discovered that the system is killing the background processes of whatsapp and facebook messenger. This results in a temporary unavailability (cannot receive messages and calls) until i lock the apps in the phone's task manage. Is there a way to disable this task killer to solve this matter????? Also the above mentioned apps don't start on boot
Bump
Yes I have same problem, this bug should be in Aurel Topic so he is working on V17 right now.
go to dialer and tap: *#*#46360000#*#* and deaktivate: Enable Background Resource Control
fortez said: go to dialer and tap: *#*#46360000#*#* and deaktivate: Enable Background Resource Control Click to expand... Click to collapse Doesn't work, There is a tutorial for a LePro 3 but it doesn't work if you kill the app from the background task (where you set the brightness)
[HELP] Google Assistant while Screen Off [TASKER][AUTOVOICE]
hello everybody, I have a kenzo (Redmi Note 3) with RR Final Build (7.1.2) installed. For me, OK Google Detection is not working while Screen off and charging .. So I am trying to make it work with tasker, AutoVoice and secure Settings.. what I wanna do is 1. Turn on AutoVoice continues while the screen off + while device Orientation is face up (So that battery consumption may be a bit low when compared to AutoVoice continues always on). when we holding the mobile we can turn it on by ourselves right? 2. wake the device up and unlock it when I say a wake up phrase, as autovoice continues is already turned on.. ( I wanna use secure settings to wake up and unlock) 3. After waking up the device Autovoice continues should turn off 4. After that I wanted to launch google assistant but I dont know how we can achieve that (with a intent or something?) 5. So for now as the device woke up I can say ok google to launch google assistant. (Yes, I need to say my hot phrase to wake the device and ok google to launch google assistant) ======================================= so I have done like this, profile 1. Created profile > event with Display off + orientation face up (State) > in task turn on Autovoice continues & Secure settings > Pattern Lock > Enable (I will desable this while the screen profile 2. Display On event > Turn off Autovoice continues profile 3. Autovoice recognized + display state (off) > set hot phrase > in task > secure settings > wake device (screen & keyboard) secure settings > Pattern lock > Disable ===================== when screen is turned off, autovoice continues is turning on but not recognizing my hot phrase.. sometimes I can hear the recognized sound (which google make a little sound when a voice command recognized). but its not turning on the screen and unlocking my device. what am I doing wrong? please let me know.. all Profiles are attached. please check them and help me to get google Assistant sorry for being so lengthy I have posted this in AutoVoice forum also, Waiting for @joaomgcd to reply
anyone?
Hi there! what Android version do you use?
joaomgcd said: Hi there! what Android version do you use? Click to expand... Click to collapse Android 7.1.2 (Resurrection Remix Final)
Thanks! Can you please export your profile's description (not xml) so I can take a look? Long-click the profile in Tasker->export description Thanks in advance
joaomgcd said: Thanks! Can you please export your profile's description (not xml) so I can take a look? Long-click the profile in Tasker->export description Thanks in advance Click to expand... Click to collapse Sure here it is... Display off - avc on Profile: Display Off -avc On (39) Event: Display Off State: Orientation [ Is:Face Up ] Enter: Always Ok Google (38) A1: AutoVoice Continuous [ Configuration: Starting continuous voice recognition without headset Persistent Notification: true Timeout (Seconds):0 ] A2: Say [ Text:Auto voice activated Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focusn Networkff Continue Task Immediatelyff ] A3: Secure Settings [ Configurationattern Lock Enabled Timeout (Seconds):0 ] ======================== Display on - avc off Profile: Display On -avc Off (40) Event: Display On Enter: Close Ook Google (41) A1: AutoVoice Continuous [ Configuration: Stopping continuous voice recognition Timeout (Seconds):0 ] A2: Say [ Text:Auto voice turned off Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focusn Networkff Continue Task Immediatelyff ] ========÷=============== Wake with autovoice Profile: Wake With Autovoice (45) Event: AutoVoice Recognized [ Configuration:Easy Commands: hello kiran,hey kiran,kiran Responses: hi ] State: Display State [ Isff ] Enter: Continues (46) A1: Secure Settings [ Configuration:Screen & Keyboard Lights On 5 Seconds Timeout (Seconds):0 ] A2: Secure Settings [ Configurationattern Lock Disabled Timeout (Seconds):0 ] A3: Flash [ Text:Kiran Longff ] Edit : Say command is not also working
Can you please check the AutoVoice logs after you say the command with the screen off? Are the commands beeing correctly recognized?
joaomgcd said: Can you please check the AutoVoice logs after you say the command with the screen off? Are the commands beeing correctly recognized? Click to expand... Click to collapse I have checked the logs and its been recognizing correctly.. Screenshot attached..
Try using different actions in the task. Do those work?
joaomgcd said: Try using different actions in the task. Do those work? Click to expand... Click to collapse I tried to turn bluetooth on when I say my command while screen is off... But nothing is happening.. autovoice continues is turning on and toast is showing up (set by me). That's it. But "possible commands received" text is showing correctly ... I don't know what's wrong
Profile: Test (42) Event: AutoVoice Recognized [ Configuration:Easy Commands: testing,test,hey google ] Enter: Test (47) A1: Say [ Text:Test passed Engine:Voice:com.google.android.tts:eng-usa Stream:3 Pitch:5 Speed:5 Respect Audio Focusn Networkff Continue Task Immediatelyff ] This task is triggering with autovoice recognise widget , but not with autovoice continues turned on.. I think problem is with my autovoice continues.. Edit : first try after turning on autovoice continues is working but the rest is not working.. (not recognising) Edit 2 : sometimes autovoice is being recognised , but task is not triggering
What if you create a notification instead? Does that work?
joaomgcd said: What if you create a notification instead? Does that work? Click to expand... Click to collapse same thing is happening... like I said, First attempt brought me a notification successfully, but If I try again nothing is happening... with the widget its working fine...
[Help] Voice Input cant be changed
hello friends, I want to change my Voice assistant to AutoVoice, So I have changed that in apps & notifications > default Apps > Assist & Voice Input > here I have chosen the AutoVoice Hotword Detection as my assistant (see screenshots 1 & 2) but the problem is when I try to Change the Voice Input as AutoVoice, its grayed Out (see screenshot 3).. because of this I couldn't get autovoice triggered with hotword. (Its working fine when I hold home button)... Am I missing anything ? Can anyone help me get rid of the problem.. ?
Method to Programatically Enable or Disable Always-On mode
I was making an app with some quick setting complications to easily toggle settings. I have things like toggling WiFi and Bluetooth and would like to add the feature to enable or disable Always-On mode from the watch face. Has anyone found a method to do this from an app? I have seen in the logs that a broadcast is being sent whenever this is being enable and disable, but I'm not sure what extras would need to be used. Code: BroadcastRecord{1df5514 u0 com.google.android.clockwork.settings.SYNC_AMBIENT_DISABLED} to user 0 Intent { act=com.google.android.clockwork.settings.SYNC_AMBIENT_DISABLED flg=0x10 (has extras) } extras: Bundle[mParcelledData.dataSize=52] caller=com.google.android.apps.wearable.settings 646:com.google.android.apps.wearable.settings/1000 pid=646 uid=1000
joelphilippage said: I was making an app with some quick setting complications to easily toggle settings. I have things like toggling WiFi and Bluetooth and would like to add the feature to enable or disable Always-On mode from the watch face. Has anyone found a method to do this from an app? I have seen in the logs that a broadcast is being sent whenever this is being enable and disable, but I'm not sure what extras would need to be used. Code: BroadcastRecord{1df5514 u0 com.google.android.clockwork.settings.SYNC_AMBIENT_DISABLED} to user 0 Intent { act=com.google.android.clockwork.settings.SYNC_AMBIENT_DISABLED flg=0x10 (has extras) } extras: Bundle[mParcelledData.dataSize=52] caller=com.google.android.apps.wearable.settings 646:com.google.android.apps.wearable.settings/1000 pid=646 uid=1000 Click to expand... Click to collapse I am pretty sure you do need the write_secure_settings permission for that which is only granted to system apps or device admin apps.
[GUIDE] EMUI 11 AOD Activates on notifications
Hello. I made a script that runs AOD when we get a notification. Works on EMUI 11 We need the Tasker app: Link to google play 1. Download the Tasker app and give permissions via ADB: adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS 2. Turn on AOD in the system settings and in the Display mode tab: select Scheduled 3. Download AOD CONTROL 4. Start the Tasker app, click on the "house" icon (lower left corner) and select import project (import AOD_CONTROL.prj.xml) 5. Go to the "TASK" tab, hold down "START" until it is highlighted in orange and click on the "play" icon (upper right corner) 6. That's it, enjoy the AOD turning on with notifications on EMUI 11
Wojtekbass said: Hello. I made a script that runs AOD when we get a notification. Works on EMUI 11 We need the Tasker app: Link to google play 1. Download the Tasker app and give permissions via ADB: adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS 2. Turn on AOD in the system settings and in the Display mode tab: select Scheduled 3. Download AOD CONTROL 4. Start the Tasker app, click on the "house" icon (lower left corner) and select import project (import AOD_CONTROL.prj.xml) 5. Go to the "TASK" tab, hold down "START" until it is highlighted in orange and click on the "play" icon (upper right corner) 6. That's it, enjoy the AOD turning on with notifications on EMUI 11 Click to expand... Click to collapse
Did you do it? Can you give me a screenshot?
Screenshot of what? With Tasker?
As you know, in emui 11 the "aod switch 1" command does not work properly. The notification is shown only after the screen is turned on and off. I used a trick. I turned on the aod, and used the command "aod_scheduled_switch" which is responsible for switching between showing notifications all day and showing in certain hours. With the commands aod_start and stop (hour and minute) I set 00.00 which will cause that aod will not turn on until you receive a notification (command ui / notification in profile)
Wojtekbass said: Screenshot of what? With Tasker? Click to expand... Click to collapse How does tasker work? I'm asking because I don't know because I don't use it.
seacrab said: How does tasker work? I'm asking because I don't know because I don't use it. Click to expand... Click to collapse The script runs the system aod when you get an SMS, a message from the messenger etc.
Wojtekbass said: The script runs the system aod when you get an SMS, a message from the messenger etc. Click to expand... Click to collapse I'm going to give you the ADB command on the computer? Or does Tasker maneger?
Via the computer, I recommend Mininal ADB and Fastboot. Before entering the command, you need to enable USB debugging on your phone (Developer options): System & Updates -> Developer Options -> USB Debugging. If you do not have "Developer options" you have to go to About phone and click 9 times on "built number" then the "Developer Options" option will appear in System $ updates. For beginners, I recommend: How to use Tasker to take Android to the next level article
Thank you, my friend. I will try. I hope I can
Wojtekbass said: The script runs the system aod when you get an SMS, a message from the messenger etc. Click to expand... Click to collapse Wojtekbass said: The script runs the system aod when you get an SMS, a message from the messenger etc. Click to expand... Click to collapse I ran a command with the ADB. Everything's normal. Aod is active and working the way you do. But it doesn't animate
What do you mean "But it doesn't animate"? Stock AOD has no animation ?! This script only runs aod when you get a notification
Wojtekbass said: What do you mean "But it doesn't animate"? Stock AOD has no animation ?! This script only runs aod when you get a notification Click to expand... Click to collapse Now I understand, my friend. If the Aod is closed or disabled, it allows it to run when the notification arrives. Thanks.
This is an alternative to the notification diode (which the Huawei P30 Pro does not have)
Is there a free alternative to Tasker app?
I exported this script as an application. Grant permissions: adb shell pm grant pl.aodnotify android.permission.WRITE_SECURE_SETTINGS See if it works
Thanks for the effort but not working for me, maybe i did something wrong? I installed the apk and granted every permission i've been asked but can't see notifications.
Wojtekbass said: I exported this script as an application. Grant permissions: adb shell pm grant pl.aodnotify android.permission.WRITE_SECURE_SETTINGS See if it works When typing command ans executing, thé following Line appears message " Security exception: Package pl.aodnotify has not requested permission android.permission.WRITE.SECURE.SETRINGS " Click to expand... Click to collapse
@Wojtekbass Plus I can't five any autorisation...nothing appears
Wojtekbass said: I exported this script as an application. Grant permissions: adb shell pm grant pl.aodnotify android.permission.WRITE_SECURE_SETTINGS See if it works Click to expand... Click to collapse Finally i got it working BUT notification badge is always on so aod is working with badge of the aodnotify ap inside. I disabled bubbles , badge, etc but Always aodnotify bubble informing no active profile (2on2 authorised)