Gmail notification issue - Mi 9T - Redmi K20 / Xiaomi Mi 9T Questions & Answers

Is anyone else having problems with Gmail (which comes pre-installed as a system app on the Mi 9T) not showing notifications until the phone is "awoken"?
I have accessed developer options, turned off miui optimization, I started Gmail and locked it to recents tab, I turn off battery optimization for Gmail & I manually turned on notifications. I can't autostart the Gmail app as it is a system app and apparently it automatically autostarts. But notifications still will not come through until I "wake" the phone by using it for something else.
I don't have issues with other "push" apps like WhatsApp - only Gmail.
Do others have the same issue? Can anyone recommend a fix?

Me too...
But it's not very often and sometimes affects other apps like WhatsApp etc as well.
Any fix to this?

Its a power saver issue. I think it's with all apps. If an app is awake you get notifications if you close it you get notifications for a while then its put to sleep. I noticed it with Instagram DMs and even though I set Instagram to be (no power restrictions) it still gets put to sleep! this is a really annoying issue! What's a "mobile" phone without instant notifications??

Same here. Gmail notifications are delayed for 2-20 minutes, but when I turn screen on (even without unlocking) notification shows immediately. Do you find any fix?

Just delete it as a system app through Xiaomi ADB/Fastboot tool and install the google play store version. In this way you can set off the power saving miui management

pfornaro said:
Just delete it as a system app through Xiaomi ADB/Fastboot tool and install the google play store version. In this way you can set off the power saving miui management
Click to expand...
Click to collapse
Already done, no effect.

My pixel didn't send a gmail notification until after turning the screen on too, it's probably not a device issue at least.

pfornaro said:
Just delete it as a system app through Xiaomi ADB/Fastboot tool and install the google play store version. In this way you can set off the power saving miui management
Click to expand...
Click to collapse
Off topic. For some other reason, I tried uninstalling Google photos via Fastboot tool and when I try to install from play store, it just gets enabled in a second; which means ultimately it didn't delete the system package; just hidden it.
Anybody came across the same issue?

mrumais said:
Anybody came across the same issue?
Click to expand...
Click to collapse
Yes, I uninstalled GMail and install it from Google Play - installation was finished in second.

Set Gmail to auto start and make sure it has no battery savings mode applied to it

Gmail is a system app and there are no options to set it to start automatically or change battery restriction.
Removing it via abd does not work.
Btw is this a MIUI issue due to battery "optimization" or android in general?

Related

[Guide] How to stop stop an app from "waking" your device

So far I thought that the battery saver feature "close app after lock" is not working because every time I unlock my phone few apps were working. Usually facebook, instagram and viber. My previous phone was Xiaomi and in xiaomi's software there is an option to block an app from auto-starting and waking your device. Well, today I found the same option in our phone. It is deeply hidden, lol. So i thought some of you may like this option. I think this will be good to the battery life of this device. So let me tell you where you can find the option:
Settings > Battery > Consumption level.
Now you see 2 categories - Hardware and Software. Obviously you should look into the software one. Find the facebook app (for example) and click on it. You will see "Settings" and under it you will find:
1) Power-intensive prompt
2) System wakeup
3) Close after screen lock
Now you can change the second option - System wakeup.
I looked through most of the apps and it seems that it works only with the downloaded apps. Not every app wakes your device but these which wakes your device can be blocked from doing it.
Unfortunately, it has been toggle for a long time in my case and it doesn't stop app like Facebook or Instagram to keep the system awake ?
frenchtouch92 said:
Unfortunately, it has been toggle for a long time in my case and it doesn't stop app like Facebook or Instagram to keep the system awake ?
Click to expand...
Click to collapse
Have you tried greenify with donation package and root? Works for me.
That only work for downloaded applications, not preinstaled. Mr suggestion is to uninstall and then unload again from the store.
It worked for me
Enviado desde mi FRD-L09 mediante Tapatalk
komakino76 said:
Have you tried greenify with donation package and root? Works for me.
Click to expand...
Click to collapse
No I didn't since I don't have root access on my honor 8 :/ waiting for a stable rom before digging into this

S7 Edge Notification Delay and A Lot of Other Problems

Recently I am having notification delays with my S7 Edge G935F. I have read through some posts on this forum and other sources and can't figure it out.
Here are some of the problems:
1. notifications are often delayed for more than thirty minutes
2. if I want to manually check notification when it does not pop up, unlocking the screen does not make the notification show, I have to actually launch the specific app to see the notification
3. It is more than just not showing the notification, when I am using some instant messaging apps (like WeChat), I can't see new messages coming in while the app is running in the front. I have to press the home button and get back to home screen, then re-enter the app, then the messages show up. This happens to many other apps as well.
4. Other things go wrong as well. For example, my Android Auto was set to launch whenever I get into my car and car bluetooth is connected. It is also delayed, by more than hours. It often launches long after I finish my driving and get back home sitting on my couch.
5. Downloading new apps from Play Store has problems as well. It downloads to 100% and just stops there, it does not start installation. I have to use Settings->App to kill Play Store and re-open it to "refresh" it, then it starts to install.
6. After installation of new app, it does not show up on my screen or app draw inside my launcher. I can see the app installed in Play Store. I have to kill launcher and re-open the launcher to make it "refresh" the app list then I can see new app inside the app draw.
I have also tried a lot of ways to fix it:
1. change app to not battery optimized -> didn't fix it
2. update firmware -> didn't fix it
3. factory reset -> works for the first day then it goes wrong again
4. flash to a different firmware (official ROM in different regions) -> works for the first day then it goes wrong again
5. use third-party ROM (Lineage OS) -> completely fix the problem, but too buggy to use
I can see the general idea of what's going wrong, some events happened (connected to car Bluetooth, new messages coming, app finished downloading, new app installed, etc.) and the system is not responding correctly. I am not very familiar with Android development but I feel like something is wrong with the "event handling" or "event raising" inside Samsung's Android system.
Please post reply if you have any idea or are facing the similar problems.
EDIT:
The phone is on Android 7.0, Build Number NRD90M.G935FXXU1DQER
You've stated that flashing the custom ROM solved the problem, so maybe you should try flashing a different rom that's a bit more stable.
From personal experience i can recommend the SuperStock rom. It's stock (obviously) and it's debloated and very stable with pretty good battery life as far as i remember.
there is some info about it here: https://forum.xda-developers.com/s7-edge/help/want-to-root-custom-one-stay-stock-t3631098?styleid=18 (ignore the root part).
Hi,
did you find any solution to this problem ? cause i got the same problem, and i'm going crazy... few months already and can't figure out what is the problem...
the temporary fix i've found is disabling the "google app" in application manager... it fix the problem but i can't use any Google app features (and i like using them...).
I've found few ppl experiencing the same problem searching on internet but no one with a real fix...
if someone more experienced can help debut this it would really mean a lot...
I think it is the battery optimization setting. You may check the settings>battery>advanced settings>optimize apps. You need to keep the apps un-optimized if you want the notifications and sync.
Also, you may check if Sync is on or off.
If these two does not solve, factory reset if you are on stock ROM. If on a custom ROM, you may check a different ROM
Hi,
Thanks for your reply. Actually none of this works... The only thing that "fixes" the issue is disabling the Google app in the application manager... That's why its so weird...
The problem started around July/August 2017 for me...
As i discovered that disabling Google was fixing the problem, i assumed that they'll correct it by updating the app... But only one update of the app was ok, all others would make the problems reappear...
Messing with battery optimization settings doesn't change anything for me... Factory reset as well... The problem comes back as soon as the google app gets updated...
Try clearing cache and deleting data from the Google app the time the problem occurs
already tried... doesn't help at all...

Calendar notifications not working

So my calendar notifications have been weird since the day I got my S8, they only seem to work when it feels like working..
I've just missed an appointment because I didn't get a notifications (I set 3), is there a solution?
Two things I found online, first one worked for a day or two, second one apparently did the trick:
Disable battery saving per app - you have to do this for each app you don't get notifications from
https://android.gadgethacks.com/how-to/fix-delayed-notifications-your-galaxy-s8-s8-0177437/
Disable Google app - apparently Google app causes problems, so you have to disable it. Just the Google app, nothing else by Google.
Also you have to check enabled notifications: Settings - Notifications - Calendar
WM_Rizzo said:
Two things I found online, first one worked for a day or two, second one apparently did the trick:
Disable battery saving per app - you have to do this for each app you don't get notifications from
cannot quote this because of forum rules
Disable Google app - apparently Google app causes problems, so you have to disable it. Just the Google app, nothing else by Google.
Click to expand...
Click to collapse
I've started a new thread about this one.
Do you mean disable google in settings->applications->application manager->google app (it is now saying disabled on my device).
I'm curious if this is gonna do the trick. I'll try and come bazck if it does not.
I't is strange that there are not MORE people complaining about this, maybe no one uses calendar apps.
I have the same issue on my note 8, I try everything to make the calendar notifications working but nothing seems to work.
I've search for a solution all around the web but there's no way...
I'm having the same problem from day one! I hoped Oreo fw wouldn't have this problem anymore but unfortunately it's still there. It's driving me nuts!
How the hell did Samsung not fix this already? Calendar application should be one of the most important apps in a smartphone. Yet it's totally unreliable and there is no solution for this! It probably has something to do with aggressive power saving.
Anyone found a way to fix this?
Sent from my SM-G950F using Tapatalk
My solution to this and whole lot of other notifications is disabling Doze through adb:
Code:
adb shell dumpsys deviceidle disable
Mehmedalija said:
I'm having the same problem from day one! I hoped Oreo fw wouldn't have this problem anymore but unfortunately it's still there. It's driving me nuts!
How the hell did Samsung not fix this already? Calendar application should be one of the most important apps in a smartphone. Yet it's totally unreliable and there is no solution for this! It probably has something to do with aggressive power saving.
Anyone found a way to fix this?
Sent from my SM-G950F using Tapatalk
Click to expand...
Click to collapse
macBart said:
I've started a new thread about this one.
Do you mean disable google in settings->applications->application manager->google app (it is now saying disabled on my device).
I'm curious if this is gonna do the trick. I'll try and come bazck if it does not.
I't is strange that there are not MORE people complaining about this, maybe no one uses calendar apps.
Click to expand...
Click to collapse
Well, I have the same problem, and I tried everything with samsung center, because I have J5 (2017) android 7.0 OS, but they did not help in any way. I found solution on forums, that works for me, and it is app on google play named "calendar notifier". It automaticly sinc with your calendar, and it plays any sound you choose for alarming, until you dissmiss it. It may happend that you hear 2 sounds, one from calendar it selfe, and one from calenad notifier, but you will not miss the appointment....
Any updates?
Has anyone heard of a forthcoming solution on this?
My only "fix" has been to disable the Google App except that app is how I launch commands for Google Home. Without it I cannot use my phone to take actions for my smart home devices. So it's a bit of an inconvenience for me. Plus surely there are people out there that like using the native google search capability on their phone while still getting notifications from apps.
I say from apps by the way as it's not just an issue exclusive to my calendar. When I have Google enabled it works for a while, but then will stop and many things stop. Text notification indicators, facebook notification indicators, calendar appointment notifications etc.
Do we need to be contacting Samsung support through their website or have people done this and it just doesn't help?
It's a bug in Android and it will be solved in next big update hopefully. Until then workaround is to use this app:
https://play.google.com/store/apps/details?id=com.github.quarck.calnotify
Read more about this problem here:
https://support.google.com/calendar/forum/AAAAd3GaXpEFzD9Y6ojci4/?hl=en
https://android-review.googlesource...iders/CalendarProvider/+/528295/?polygerrit=1
https://android.googlesource.com/pl...er/+/1f4773948f99c9460f2b3b397d87dc4aeb87d73e
Mehmedalija said:
It's a bug in Android and it will be solved in next big update hopefully. Until then workaround is to use this app:
https://play.google.com/store/apps/details?id=com.github.quarck.calnotify
Read more about this problem here:
https://support.google.com/calendar/forum/AAAAd3GaXpEFzD9Y6ojci4/?hl=en
https://android-review.googlesource...iders/CalendarProvider/+/528295/?polygerrit=1
https://android.googlesource.com/pl...er/+/1f4773948f99c9460f2b3b397d87dc4aeb87d73e
Click to expand...
Click to collapse
FANTASTIC INFO. Thank you. Glad to see it's in the works for correction. Seemed like quite a large issue to have even happened and not being repaired quickly. But I suppose I don't know the complexities of what caused this or the best solution to fix it. Just seems like a lot of people rely on calendars and appointment reminders not working would be a big **** storm for them.
Just chiming in to let you know I'm having the same problem on my Note 8! It was working for a few months and then stopped! Tried clearing cache, data, and many other "fixes" that I've since forgotten. Nothing works. Recently got the Oreo update and SAME problem!! Really annoying! Maybe it's Google sabotage?! They are trying to control everything! Btw, downloaded the Google calendar app but I don't like it!
I had used successfully the adb doze disable on command prompt but my phone just "upgraded" to Oreo 8.0.0 and now my calendar notifications have stopped working again!!! I had a functioning calendar finally but now it's gone again!!! I ran the adb command line again (adb shell dumpsys deviceidle disable) but still no notifications! I cleared data, checked the app wasn't optimized and reverted to stock calendar but nothing! Does anyone know another command line to stop this doze crap in 8.0.0??? This is why I dread EVERY "upgrade"! How could they take this away from me again???!!! I used to love Samsung but now I hate it!!!
I did the device doze disable using SDK tools and this worked for months then it stopped notifications again... sometimes! Besides making calls this is the number one thing I need from my phone and it still doesn 't work! Anyone ever find a solution to this because I still need one! Using Android 8.0! I was using Calendar Events app, worked for a while then quit. Same with Calendar Notifier and Calendar Snooze app. Plus a number of other apps designed to work with the calendar. I've been relying on my calendar since my Galaxy S2!
I stopped using calendar notifications because of this issue. I have very spotty wifi and mobile data, I found that calendar notifications would only work with a data connection. Typically, I'd set a notification, but remember the appointment anyway. About 10 minutes in the car, data finally connects, the 30 minute old notification finally goes off....
It's a dismal state of affairs when the consumer becomes the software tester with such an essential device.
Well,this is weird. My Whatsapp notifications weren't working. When I set the notification in the app ,you can select the app that chooses the file eg Chomp(SMS), Audio files,Themes,Music.
Intutively, I chose Audio files, and that appears to work, but Whatsapp produced no sound on incoming messages. When I chose Chomp to select the MP3 file, it seems to work OK. I'll play a bit more and report back.
Cheers
Steve

Phone not receiving real time notifications

Hi, I have an OP5 on stock Open Beta 5, I'm currently rooted.
Apps that usually have real time notifications or functions don't seem to work until I manually start them after bootup, or even don't work at all.
For example, my mail app now doesn't give me notifications, rather I would have to open up the app manually and refresh the app to see my mail load. Other apps like a notification mirroring app don't work at all until I launch it once on my phone every restart.
I thought it was like Greenify shutting these processes down but I've uninstalled that since. Any ideas?
erak606 said:
Hi, I have an OP5 on stock Open Beta 5, I'm currently rooted.
Apps that usually have real time notifications or functions don't seem to work until I manually start them after bootup, or even don't work at all.
For example, my mail app now doesn't give me notifications, rather I would have to open up the app manually and refresh the app to see my mail load. Other apps like a notification mirroring app don't work at all until I launch it once on my phone every restart.
I thought it was like Greenify shutting these processes down but I've uninstalled that since. Any ideas?
Click to expand...
Click to collapse
Did you reboot and wipe cache? What mods did you use additional? Please give more details about your setup.
You can also exclude apps from battery optimization for keeping this apps awake even when doze kicks in so messages came always through and not only in specific time periods.
strongst said:
Did you reboot and wipe cache? What mods did you use additional? Please give more details about your setup.
You can also exclude apps from battery optimization for keeping this apps awake even when doze kicks in so messages came always through and not only in specific time periods.
Click to expand...
Click to collapse
Hi, I'm currently rooted with Magisk. I tried excluding the app from battery optimisation and so far it's been working.
erak606 said:
Hi, I'm currently rooted with Magisk. I tried excluding the app from battery optimisation and so far it's been working.
Click to expand...
Click to collapse
If it's not working please answer the other questions too

Disable Battery Optimization

So it looks like there are many people having issues with the battery optimization feature, which lets me guess oneplus is already aware of the problem. My question is if there is a way to disable the optimization completely for now until oneplus has sorted things out.
Since the last update it is so aggressive, it kills youtube's connection to my chromecast every few minutes, rendering all control features unuseable as I always have to reconnect before I can do anything. This also makes my wearOS watch unuseable as it also depends on the phone keeping the connections alive.
You can turn off Optimization for YouTube and WearOS
Settings > Apps & Notifications > Special app access
You can turn off optimization for any app, and see the advanced in the 3 dot menu. I had the same problem with my watch, turned off the watch app and helper, now works great. I also turned off messenger, no problems now.
Sent from my iPad using Tapatalk
I also would like to know if this is possible in an easy way. I don't want to disable it for 256 apps independently.
Aircraft800 said:
You can turn off Optimization for YouTube and WearOS
Settings > Apps & Notifications > Special app access
You can turn off optimization for any app, and see the advanced in the 3 dot menu. I had the same problem with my watch, turned off the watch app and helper, now works great. I also turned off messenger, no problems now.
Sent from my iPad using Tapatalk
Click to expand...
Click to collapse
Thanks for the reply!
That setting was the first thing I checked and already disabled optimization for the wearOS and cast apps which work fine now. Unfortunately it won't let me disable it for the youtube app as it handles that one as a system app. As long as youtube is not allowed in the background wearOS has nothing to communicate with so I still can't control it.
That's why my next thought was if I can't disable it for system apps maybe there is a way to completely disable it until oneplus has the problem solved. I know that solution would suck but at the moment I am forced to use another phone to use youtube properly which sucks even more imo.
boelze said:
Thanks for the reply!
That setting was the first thing I checked and already disabled optimization for the wearOS and cast apps which work fine now. Unfortunately it won't let me disable it for the youtube app as it handles that one as a system app. As long as youtube is not allowed in the background wearOS has nothing to communicate with so I still can't control it.
That's why my next thought was if I can't disable it for system apps maybe there is a way to completely disable it until oneplus has the problem solved. I know that solution would suck but at the moment I am forced to use another phone to use youtube properly which sucks even more imo.
Click to expand...
Click to collapse
I wonder if the system mover app works on Pie and YouTube? I didn't realize YouTube was a system app since it's from the play store.
https://play.google.com/store/apps/details?id=de.j4velin.systemappmover
Aircraft800 said:
I wonder if the system mover app works on Pie and YouTube? I didn't realize YouTube was a system app since it's from the play store.
https://play.google.com/store/apps/details?id=de.j4velin.systemappmover
Click to expand...
Click to collapse
I would love to try this but I am unrooted. Youtube should be on the list but it is not, I am guessing that is because it comes preinstalled, the playstore app isn't there as well for example.
I know this is an old thread, but the more I use my new phone, the more I believe this to be the issue with my Gmail app constantly putting my Exchange accounts back to 30 minute fetch. And, I cannot disable battery optimization on Gmail because it's a system app (and I do not want to root). For now, every other day, I have to tell the device that it really is OK for Gmail to remain constantly connected to my Exchange account, that I actually prefer it to be. I've made it to 54 hours with my normal use (OVER 7 HRS S.O.T), not trying to stretch it at all, no battery saving features on whatsoever. So it's safe to say I can afford for Gmail to stay connected with Exchange. The optimization is a bit too aggressive for not allowing system apps to be excluded.
I've also had issues with Google Assistant not reminding me about reminders that are clearly in the list of her reminders, and I think this to be the culprit as well, and again, can't disable it because it's not on the list.
cannothas said:
I know this is an old thread, but the more I use my new phone, the more I believe this to be the issue with my Gmail app constantly putting my Exchange accounts back to 30 minute fetch. And, I cannot disable battery optimization on Gmail because it's a system app (and I do not want to root). For now, every other day, I have to tell the device that it really is OK for Gmail to remain constantly connected to my Exchange account, that I actually prefer it to be. I've made it to 54 hours with my normal use (OVER 7 HRS S.O.T), not trying to stretch it at all, no battery saving features on whatsoever. So it's safe to say I can afford for Gmail to stay connected with Exchange. The optimization is a bit too aggressive for not allowing system apps to be excluded.
I've also had issues with Google Assistant not reminding me about reminders that are clearly in the list of her reminders, and I think this to be the culprit as well, and again, can't disable it because it's not on the list.
Click to expand...
Click to collapse
Having exactly same problems with gmail and chrome (html5 push notifications). I am rooted. So I am considering to mark those apps as non system apps, but still not sure if this won't brake future updates or something.

Categories

Resources