[Q] Wifi when sleeping issues - Nexus 5 Q&A, Help & Troubleshooting

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

Related

[Q] Notifications while on WiFi

Don't want to sound like a total noob, and I have searched and founds some information on this, but, nothing that appears to be a solution. Long story short: I get zero notifications when my phone is connected to WiFi (Google Voice, Gmail, Facebook, etc.). As soon as I either turn autosync off and then back on to force a sync (via toggle) or disable WiFi and connect to LTE or 3G, all of my notifications come through. From looking around it appears that this has been an issue on "factory stock" Nexus versions for a while (ARP?), and I have yet to see solutions that don't involve rooting and changing INI files. Anyone have any insight into this? My old phone worked fine, but it was rooted and ran CM 10.0. Not a deal breaker, but it is annoying and seems silly.
-Rhys
Hey,
so sometimes (especially when u wait [testing]) it needs some time til notifications appear, but I'm general it's working as it should for me...
So just a few thoughts:
- tested on different WLANs
- checked ur WLAN settings
- deleted WLAN and re-added it
- deleted and re-added accounts
- (factory) reset phone
CHEERS
Sent from my Nexus 5 using XDA Premium 4 mobile app

[Q] Autoremote - Have to register multiple times every days

AutoRemote on android and AutoRemote extension on Google Chrome "PC"​
Hi,
First... Thank's to everyone who will read this and try to help me. I looked everywhere I could before posting here... Google search - joaomgcd Google + page - joaomgcd Google groups. I tried my best to find as much information I could and I tried everything I tought. Now, I'm asking for your help!!
I'm using AutoRemonte on My android and on my pc with the autoremote extension. I have a few profile setup with tasker.
By example, I use this profile HERE and it is working.
My problem is the following:​
Connexion problem between AutoRemote android app and AutoRemote Chrome Browser.. But absolutely no problem between AutoRemote android app and EventsGhost on pc.
If my phone is booted for about 1 hours or more, the connection between my android device and the Chrome Browser seems to be broken on 1 side.
- The messages sent from the Chrome Browser are sent but the phone never receive them.
- The message sent from my android device are sent and received by the browser.
If I reboot my device, the connexion is completely broken.
- The messages sent from the Chrome Browser are sent but the phone never receive them.
- The message sent from my android device are sent but the Chrome browser never receive them.
What I tried to solve it​
In Both situations, I found a way to repair the connection simply by changing the state of the network connection on the android device.
- Original state wifi on
Put wifi off
- Original State 3G
Put wifi on
After this, the messages will be sent and received from both side and will work on 3G or wifi but after an hours or so... The problem come back.
Greenify
I thought the this app could be the problem so I uninstalled it. The problem was still there..
Low Memory killer
I also thought that the android memory manager could be the cause of the problem so I changed the value to the lowest with the help of Rom Tool Box Pro. The problem was still there..
I found in the AutoRemote FAQ a similar problem and they said to use PNF to resolve the problem with the GCM by sending heartbeat more frequently.. So I tried it.. The problem was still there..
I always have 3 instances of Google Chrome running on 3 differents pc's all connected with my google account, so I thought that it could be the problem.. I signed off from all instances except the one at my work.. The problem was still there..
----------------------------------UPDATE----------------------------------​
I posted a question on my ROM google+ page to know if it's a known problem https://plus.google.com/110548826938886642476/posts/1dZUTVEPA52
----------------------------------UPDATE----------------------------------​
I just created a Tasker profile that will use AutoRemote to send a message to my Chrome Browser every minutes.
-
Ok it's not solving the problem.. The messages from the device are always sent but the messages from the Chrome Browser are not received on the android device.. I really think that the problem is on the phone side.. But I don't think it is the GCM because if someone send me a hangout message or if I receive a gmail.. The notification always arrive... The problem is only with the AutoRemote app between the it and the Chrome Browser.. I don't have this problem with a computer using EventGhost..
I will add more information as soon as I get it.
Thank's again for your help!

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.

Delayed Notifications on Android 7.0 How Can I Solve It?

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!

Categories

Resources