Delayed Notifications on Android 7.0 How Can I Solve It? - General Questions and Answers

I am using Samsung S7 on Android 7.0. This has been a problem bugging me for ages and I decided to try find a solution for it.
TLDR: Delayed notifications. Turned off battery optimisation but still delayed. how?
Mainly the delayed notifications are for Facebook and Instagram. So most of the time, I am on Wifi connection. When I step out of the wifi zone and goes into 3G/4G data, I start receiving the notifications. Or at times, it takes long even at the same wifi location that I received the notifications. Example what JUST happened was Instagram notification appear that took place last night at 11PM (when it's already 11AM now, 12 hours later).
I Google for solutions and what I saw was to turn off battery optimisation for those apps. I did, but same. I am not using any apps that kills process or any battery saving apps. I am however using AdGuard and have flitering mode set to "Current: Local VPN". (To connect via a local VPN to do ads blocking.) Not sure if that's the issue. Nonetheless, I did set AdGuard to even not filter data for Facebook and Instagram app, but same issue. So I felt it might not be AdGuard.
Any suggestions?
Thanks in advance!

Related

Google Talk - Delayed Incoming Notifications

Hey guys,
Tried searching for this, but nada.
Anyone else having issues with your phone being idle but powered on ans upon bringing on the screen you receive a google talk notification that's old? Is been happening to me lately, and I can't tell if it's the phone or the fact that my desktop version is intercepting the message and preventing the phone notification.
I'm tempted to no longer use the desktop built in gmail version, but I wanted to see if others are having similar issues.
Thanks in advance!
Sent from my HTC One X using xda premium
Can't guarantee this, but I have a feeling it may have something to do with the phone letting the Google talk process close when the phone is in it's sleep state. I've noted that I keep having to re sign in to gtalk when I wake up my phone and suspect that it is an issue with the horrible multitasking that HTC has bundled into sense 4.0.
I assume both of you also get delayed notifications with push email using the native Gmail app? I also frequently get logged out of Google Talk when I put the phone in standby mode. When I am logged out of Google Talk, my push emails are delayed in the Gmail app until I log back into Google Talk.
So it seems to be some problem of getting disconnected from google services when the phone is asleep.
I don't think i've been getting delayed notifications, but I do notice that my chat gets out of order a lot. My replies will be above whoever is talking to me no matter what order each was sent in.
Almost every phone that comes out gets a google talk going eventually so there is lots out there, but each phone has it's own issues. Here is a thread that was pretty good from the Galaxy Nexus Forums.
http://forum.xda-developers.com/showthread.php?t=1400367
With the HOX I have had issues with Google Talk not working great when the wifi is dropping, so this might be part of the wifi issue that pretty much everybody is having with this phone. The wifi stays connected but seems to go to sleep so your phone only gets the notification once it is woken up. Try turning off the wifi and seeing if you have the same problem.
As for Google Talk, there are some oddities that go along with using it on multiple devices. Here is some stuff I figured out playing around with it on multiple devices and computers at the same time. (I posted this in the GN forums as well)
"Google Talk is my main means of communication it seems so I have played with it a lot. Here are my observations.
1. To keep it "up" all the time in the Talk App hit the menu button (three dots now) >settings>uncheck automatic away status. Also make sure your phone has automatic syncing turned on for your gmail account: Setting>Accounts and Sync>ON (for your chat gmail address anyway). Additionally make sure your mobile data is turned on if you are ever off wifi: Settings>More>Mobile networks>Data Enabled (checked to turn on)
2. You can have up to 6 devices linked to your talk account at once, after that they just stop working.
3. When you receive a IM it appears on both your phone and your gmail account. If you start typing on the gmail account (or G+) it hijacks the whole session and you phone no longer gets the notifications, but the conversation still shows up on the chat window on the phone. When you are done with the IM session make sure you close the window on gmail (or G+) and send one last message from your phone or tablet to take the session back over, if you don't your phone will not receive future chat notifications. You can also just log out of your gmail/G+ session and it will automatically return everything to your phone/tablet but who ever does that?
4. To figure out how it all worked and tinker with it I use both of my gmail accounts and chat back and forth with them. You can do it from separate browsers or just open an incognito window in Chrome and log into your other gmail account. I would recommend this so you can see all of this stuff in practice.
Good Luck, hope this helps"
Gtalk and gmail delays
Hi all,
I have performed tests and discovered that if i disable WiFI and only use the phone's data connection "4g" or LTE that i receive all my messages with no problem even when the phone locks/goes to sleep. However if i leave wifi turned on, within 5-10 seconds i stop receiving them and will only receive them when i wake up the phone/unlock or wait for the delay which can be anywhere from 5-15 mins.
Trying to figure out a way to by pass this, but can't seem to figure it out. I don't want to keep my wifi off when i'm at work or home so i don't use data as i have 3GB and not unlimited so it kind of sucks that i have to keep wifi off for now. Any thoughts/ideas would be great, thanks.
k0sun7eash3d said:
Can't guarantee this, but I have a feeling it may have something to do with the phone letting the Google talk process close when the phone is in it's sleep state. I've noted that I keep having to re sign in to gtalk when I wake up my phone and suspect that it is an issue with the horrible multitasking that HTC has bundled into sense 4.0.
Click to expand...
Click to collapse
This. I have issues with timely/accurate reception of notifications from GV. I only use my account for voicemail, but typically I only get voicemail notifications if I open the actual application (which I do because my gmail account receives an email notification now, as well). Sometimes I notice GV as a running task, but often times not, so to me it seems that (possibly) multitasking or some other form of process management in ICS or Sense is not prioritizing the GV process and it's associated actions. I dont mind the aggressive multitasking, but it would be nice to have the option of protecting some processes, such as GV.
I removed google + app completely with titanium backup, and the problem is gone., I get the messages immediately
Push Notifications Fixer can fix it
xda http://forum.xda-developers.com/showthread.php?t=2142503
play store https://play.google.com/store/apps/details?id=com.andqlimax.pushfixer
I'm running the latest Viper, I've never had an issue receiving or sending msgs. The only time the phone won't alert me is if I am actively typing in the browser window.
I'll note though that I never have wifi on, it's always on the mobile network.
andQlimax said:
Push Notifications Fixer can fix it
xda http://forum.xda-developers.com/showthread.php?t=2142503
play store https://play.google.com/store/apps/details?id=com.andqlimax.pushfixer
Click to expand...
Click to collapse
I tried everything not even this works for me
Same problem, screen off - phone disconnects, unlock the phone - messages start to appear
Same problem on 2 different phones and 2 different numbers
I don't use G Talk, but I see the same thing with G Voice. I almost never get voicemail notifications on my HOX (they show up instantly on my old GNex). I blame Sense (for this and other things).
Same problem, but with Nexus 4 when I am on WiFi. With data connection, it works without problems.

[Q] Wifi when sleeping issues

Hi looking for abit of help and a fix for what is quite an annoying problem.
Push notifications and wifi is causing me many issues on my nexus 5 when the screen is off for over 8 mins my push notifications for all apps just seem to stop. This is an issue with wifi only as 3g is totally fine.
The keep wifi on when screen off setting is set to always already and power saver is disabled.
Booted into safe mode and it seems that the problem doesn't actually exist when am in safe mode from my testing so far. Iv sent a message on whatsapp told a contact to reply in exactly 11 minutes which they did and i received it with no issue.
App list:
Whatsapp Messenger
Greenify
Facebook
Twitter
Dropbox
Snapchat
Ebay
My Vodafone
Met office app
Franco Kernel updater
Which app could be causing a conflict here?
What is the best way to find out in none safe mode?
edit: corrected some info

RILJ wakelock (among others) killing my battery.

Ever since the 5.1 OTA (Or Google Services 7.0.99, I'm not sure), I've been experiencing bad battery life.
I downloaded Better Battery Stats and Wakelock Detector to try to find the culprit and this is what I've found.
- Connected to my wifi at home my Nexus 5 sleeps just fine.
- At work (wifi) I'm having a lot of wlan_rx and wlan_wd wakelocks and high awaken times due to this.
- When on mobile data it all gets worse: I'm getting hundreds of instances of RILJ wakelock in a matter of minutes, and sometimes Gmail often appears first on the list with high wakelock counts and times. Google+ and Keep also make frequent appearances I'm Wakelock Detector
- BBS ALWAYS shows bam_dmux_wakelock as the main culprit and sometimes sensor_ind (on mobile data), but I don't know what to make of that, since WD shows other things (RILJ etc).
Regarding RILJ: almost everything I've found online says that it has something to do with network location and that turning off location history removes it, but I rarely have location services on (GPS or network location) and location history is off anyway. I've tried disabled NetworkLocationService and every other service regarding location using disable service to no avail. It doesn't seem to happen when the phone is in 2G only.
Gmail frequently shows up in WD with high counts and times, I've seen Keep and Google+ in there too, first on lists. I've disabled them both for now.
In the battery stats the activity bars doesn't seem to be all that different from the screen on bars, but both WD and BBS show high awake times (sometimes as high as +20%). This is when on mobile data or connected to the wifi at work (wifi at home is just fine).
I tried downgrading to 5.0.1 (there now), installing Google Services 7.3.29, disabling a bunch of services, but nothing helps.
Google Services shows up as using more energy than anything else, sometimes even more than the screen, but only when mobile data is enable, it doesn't use energy when on wifi. There's no high data traffic as some people is experiencing with 7.X versions. The wlan wakelocks are awful at work though. So there are like several, independent problems.
I'd appreciate any insight on this matter. I don't seem to be the only one experiencing this.
I'm leaving a few screen shots. I'll post BBS screenshot by the end of the day.
Did you solve this? Nobody seems to know what really is RILJ.. If I restrict it to "7200" (2 hours) at Amplify it's safe to receive calls/sms ???
Luckzzz said:
Did you solve this? Nobody seems to know what really is RILJ.. If I restrict it to "7200" (2 hours) at Amplify it's safe to receive calls/sms ???
Click to expand...
Click to collapse
Easy way to find out is to test it. Restrict and then phone/text yourself from another phone. Test periodically until you're comfortable with the results.
I've having troubles with this from some months ago now. It dissapeared at some time, but it's back again.
Anyway, in my case, the problem happen when i'm connected to a WIFI network, with mobile data activated. If I deactivate it, everything is just fine. Don't really know what is causing this, but at least I discovered my problem.
Hope this help someone else.
Cheers

Very Slow/Inconsistent Notifications

Hi, so the simplest way of stating my problem is when my device is either unlocked (AKA browsing apps and whatnot with the screen on), or locked (sleeping), notifications are slow to arrive. Right now I've been testing with Skype, and Gmail, both of which are inconsistent. My OPO does not currently have a SIM card (haven't setup the plan yet), and I've tried with both LTE and Radio off (using *#*#4636#*#* on the phone info page)
Info about my OPO/Setup:
Flashed CyanogenMod 12.1 as stated in the Sultan thread before flashing Sultanxda Rom
Using Sultanxda Unofficial CyanogenMod 12.1 Sep 14, 2015 (http://forum.xda-developers.com/one...m-kernel-unofficial-cyanogenmod-12-1-t3120259)
Using AK v.020 CAF Kernel (http://forum.xda-developers.com/oneplus-one/orig-development/kernel-ak-t3189886)
Using StyloKing v1 Synapse profile for CAF (http://forum.xda-developers.com/one...ad-oneplus-t3163211/post62600798#post62600798)
Using build.prop mods (http://forum.xda-developers.com/oneplus-one/general/build-prop-tweaks-device-t3168207)
Using TK Gapps Pico (http://forum.xda-developers.com/android/software/tk-gapps-t3116347)
Using Oxygen OS Modem ONLY (http://forum.xda-developers.com/one...dio-updated-modem-radio-files-oxygen-t3072516)
Using Xposed for Lolipop (http://forum.xda-developers.com/showthread.php?t=3034811)
Using Greenify and Amplify with settings from both of these threads (http://forum.xda-developers.com/android/general/guide-0-0-hour-idle-battery-drain-stock-t2973588 & http://forum.xda-developers.com/android/general/guide-extreme-battery-life-t3095884)
My OPO does not currently have a SIM card (haven't setup the plan yet)
Things I've tried:
With both LTE and Radio off (using *#*#4636#*#* on the phone info page)
Older Skype versions
Push Notification Fixer (https://play.google.com/store/apps/details?id=com.andqlimax.pushfixer&hl=en)
Disabling Amplify by disabling the module in Xposed, and rebooting
Double checked that Greenify isn't touching Skype or anything related
I also have a Samsung Galaxy S3 that is using the stock ROM (Android 4.1.2) with root permission and a custom recovery. That is the device I've been using to test with. If I send a Skype or Gmail message from my OPO to the Galaxy, it takes 2-3 seconds EVERY TIME consistently.
If I send a Skype or Gmail message from the Galaxy to the OPO, sometimes I'll get the message within 3-5 seconds, other times it takes 1 minute+ and even a few messages don't arrive until I unlock the device and open Skype or Gmail.
When I leave Skype open, and lock my OPO, it seems to get the messages very quickly almost every time.
Also, it appears that when my phone sleeps for a certain period of time, seems inconsistent, the WiFi will disconnect - and I DO have keep WiFi on while phone is sleeping.
I've run out of ideas short of trying a full wipe and different rom/kernel/who knows what at this point...=\
Any/all help is greatly appreciated. Thanks.
Edit/Update: Found this post (http://forum.cyanogenmod.org/topic/107023-cm12121-wifi-connectivity-issuesdrops-workaround-included/) on another forum, and that seems to have fixed it for me. Doing further testing, but so far positive results.
The delayed response is most probablye due to the Greenify/Amplify tweaks that you've made. Remove everything related to Gmail, Skype, Google Play Services from Greenify & Amplify and then test. Add back the tweaks one by one and find the culprit.
I've already tried that. Fully disabling Amplify, and double checking that I've touched nothing close to Skype or Gmail or Google Services in Greenify's settings.
As I put in the edit in my first post, I found out going to /system/etc/wifi/WCNSS_qcom_cfg.ini and changing the line
Code:
McastBcastFilter=3
to
Code:
McastBcastFilter=0
appears to have solved the issue for me.
But when I did that, I also noticed something else, and I wish I hadn't unplugged my device (AKA wiping battery data so I could show a clear screenshot of what I mean), because I saw when I was looking at the battery usage chart, all day long while I had McastBcastFilter=3, my WiFi signal was turning on and off CONSTANTLY throughout the day, and sometimes for decently long periods. Now that I've changed McastBcastFilter=0, my WiFi signal shows that it's on 24/7 in my battery screen.
I'm worried that this is going to cost me a fair bit more battery, but at the same time I need my notifications.
I found another setting in that file with this comment:
Code:
# Enable suspend or not
# 1: Enable standby, 2: Enable Deep sleep, 3: Enable Mcast/Bcast Filter
gEnableSuspend=3
Before I made any changes to this file, it was set to 3, which makes sense with the McastBcastFilter changes I made. But attempting to get some more battery life so my WiFi goes into some sort of partial power save mode for battery longevity, I'm going to try my OPO with Enable Deep Sleep on all day. We'll see how the battery fairs and if notifications are still delayed or not.
Edit: I was able to get the data from my secondary battery app so screenshots for all!
This is what my Wifi/Battery was like before I changed McastBcastFilter at all:
Code:
imgur.com/ZXmFYhI
This is after I changed it from 3 to 0:
Code:
imgur.com/H5ZlXc2
And this is what it's been like since I rebooted last night with gEnableSuspend=2 (AKA Deep Sleep):
Code:
imgur.com/2O6GuVE
Obviously when the WiFi is off, I'm not getting my notifications. >=\
(Gave the URLs CODE tags so I could link the images...)
Well so far I haven't seem to have come across any issues with leaving BcastMcast at 0 and using Deep Sleep for WiFi. I'm still getting all my notifications, and as far as I can tell the battery life is give or take about the same. Possibly a little more battery drain than with BcastMcast on, but I haven't done any sleep tests yet, just initial observations with using OPO in a daily setting.

WhatsApp drains battery when no data connection

Hello guys, and girls, I tried to search for this issue I'm facing, but no luck at all and it's getting quite annoying:
At night when I go sleep I leave my phone turned on while disabling wifi and 4g connection to avoid WhatsApp notifications at night.
After installing latest B182 version in my MHA-L29 Mate9 I'm facing weird battery drains as you can see in screenshots. At first I didn't notice, but looks like WhatsApp is consuming like hell when no connection is available.
Right now I have the dual application option turned on because of 2 sim cards and had until this morning the "ignore battery opt." granted to avoid (even if it seems ok after B182) the clone app issue not making receive notifications.
Attached pictures show a massive battery drain after I went sleep and then a normal battery consumption while I turned it on.
From 21:47 till 22:47 WhatsApp is using 22mAh (normal use while connected to wifi), instead from 2:17 till 3:17 (display off and no connection) it shows a 352mAh usage!!
Any ideas? It's getting really annoying because I want leave it turned on in case of emergency but afraid I won't be able to get morning alarm ring.
Do you have a wifi search turned on even if the wifi is turned off? Same as 4G data .
indy1369 said:
Do you have a wifi search turned on even if the wifi is turned off? Same as 4G data .
Click to expand...
Click to collapse
Hello, I have wifi turned off and default settings, looking at screenshots it says that Wifi is on and that's strange indeed. But I see no wifi search and it doesn't make sense if it's turned off. Also it used to work fine until B182 update.
Search in settings for wifi and Bluetooth scanning and turn them off,they are in location settings.
gm007 said:
Search in settings for wifi and Bluetooth scanning and turn them off,they are in location settings.
Click to expand...
Click to collapse
Done, still I don't get why is causing issues when it used to be working fine. I'll let you know if it works, only thing left is understanding why whatsapp is draining battery like that.
Thank you
2 whatsapp is known to drain battery and if you disable data or wifi, whatsapp still scan to get data and that drain more battery,so better to keep data on and maybe force whatsapp to close when screen is off?just try not sure.
You could enable 'do not disturb mode (manually or automatically) so you can leave data and Wi-Fi on and not be disturbed by notifications. It's in the settings menu.
Sent from my SM-T813 using XDA-Developers Legacy app
Turn wifi scanning off, leave your data on overnight and put the phone into do not disturn mode. You can close whats app manually before your go to bed. Also wifi scanning will turn on if you click ok for the propt which says google will needto use your location or what. (ofc gps is turned on) some app require it like tinder on 4g...... LOL
Alta1r said:
You could enable 'do not disturb mode (manually or automatically) so you can leave data and Wi-Fi on and not be disturbed by notifications. It's in the settings menu.
Sent from my SM-T813 using XDA-Developers Legacy app
Click to expand...
Click to collapse
Yeah I know about that, but that's not an option. As I said it always used to work fine. So to me it's a strange behaviour as it is right now and it doesn't make sense at all that an app using a connection keeps draining like that when no connection is available and uses quite no battery at all when screen on and connection available.
What I mean is that I want undersand why it's not working anymore rather than looking for workarounds.
gm007 said:
2 whatsapp is known to drain battery and if you disable data or wifi, whatsapp still scan to get data and that drain more battery,so better to keep data on and maybe force whatsapp to close when screen is off?just try not sure.
Click to expand...
Click to collapse
No luck, I did another hard reset + cache partition wipe and disabled wifi/bluetooth ocnnection for apps and indeed it didn't show wifi as connected when it wasn't but still getting battery drain from whatsapp, don't really get what's wrong now and why it was ok before B182
Alta1r said:
You could enable 'do not disturb mode (manually or automatically) so you can leave data and Wi-Fi on and not be disturbed by notifications. It's in the settings menu.
Sent from my SM-T813 using XDA-Developers Legacy app
Click to expand...
Click to collapse
I agree, I use the automatic 'Do not disturb' setting and it works great. Highly recommended. You can whitelist some important contacts, so they can still call you.
Sho-Bud said:
I agree, I use the automatic 'Do not disturb' setting and it works great. Highly recommended. You can whitelist some important contacts, so they can still call you.
Click to expand...
Click to collapse
So you agree that there is a bug. Do notizie disturb IS non an option to me
I just received a newer version of WhatsApp, it might fix some bugs. I haven't noticed a problem with WhatsApp, because I always have a dataconnection, but I trust you that there is a bug. I don't know if that bug is in the Huawei firmware or in WhatsApp. You can try to get support from WhatsApp.
Sho-Bud said:
I just received a newer version of WhatsApp, it might fix some bugs. I haven't noticed a problem with WhatsApp, because I always have a dataconnection, but I trust you that there is a bug. I don't know if that bug is in the Huawei firmware or in WhatsApp. You can try to get support from WhatsApp.
Click to expand...
Click to collapse
Tried everything but no results, it looks like it's happening only with whatsapp, but just after installing B182, I'll install viber to check how it works with no connections to be sure to make whatsapp the culprit as not compatible with last firmware release. Kinda frustrating to be honest, I'm thinking about taking a flight and not be able to watch a movie because of battery drain
As a workaround for your flight, you may try to use the ultra battery saving mode, and add your video player as an available app in this mode. It should kill all other apps. I never tried it myself, but it may work until there is a better solution.
Hi, I have this problem too. Whatsapp is draining batt at night.
UnderXP said:
Hi, I have this problem too. Whatsapp is draining batt at night.
Click to expand...
Click to collapse
Which version? B182?
moscatomarco said:
Which version? B182?
Click to expand...
Click to collapse
MHA-L29C605B111.
I have 2 sims, activated Whatsapp twins app. I use airplane mode at night.
UnderXP said:
MHA-L29C605B111.
I have 2 sims, activated Whatsapp twins app. I use airplane mode at night.
Click to expand...
Click to collapse
I'm on B182 dual sim. I only disable WiFi and 4g at night. Viber and hangout are working properly. Whatsapp is draining battery. I already sent a couple mails to whatsapp support but no answer yet. I guess it's whatsapp issue right now
moscatomarco said:
I'm on B182 dual sim. I only disable WiFi and 4g at night. Viber and hangout are working properly. Whatsapp is draining battery. I already sent a couple mails to whatsapp support but no answer yet. I guess it's whatsapp issue right now
Click to expand...
Click to collapse
Ciao, I'm using same phone Mate 9 (italian) / dual sim / B182 / double app for whatsapp and getting exactly same issue.
Never noticed until went abroad and kept phone for a while without any connection, when a connecton /wi-fi or mobile is always available the battery drain is normal, but when it has no connection available, in flight mode as well, it's getting very hot in back/upper side and draining battery superfast.
I tried to disable several things such as automatic updates for Android system or wi-fi search but no results, and I have found too that the cause is whatsapp, clearly a bug.
Only workaround working so far is going in the battery menu and stop manually whatsapp by the high battery consumption list. After this manual disable, battery consumption goes fine. In facts, although I have disabled in the whatsapp app the possibility to keep the app running in background and selected to close at screen lock, it's staying there and draining battery like hell. I also tried to cancel the whole whatsapp data and re-login but nothing changed, I still haven't tried to re-install but I guess it's pointless as well.
However this is just a workaround, I'll try to write to whatsapp support and get their comment. I tried alreasy with Huawei technical support before having so much details and their help was very general, just recommended to do battery test (battery is perfect, in normal conditions I can get 2 days duration with heavy usage) and to reset the phone (I can't see how this would help).
Keep you posted as soon as I have some news.

Categories

Resources