yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 11 Ultra] Cydian Rain:
I'm also on MIUI CN ROM 12.5.12

MIUI does two things with app notifications (even before 12.5.12):

• It defaults to not showing notifications on the lock screen and when using the device (i.e. seeing them appear onscreen) - two settings require changing:

- To make notifications appear onscreen - In the application's app settings (do this by long-pressing on the app, and choosing "App Info"). Then, tap "Notifications", and scroll to the bottom. You'll need to tap each category choosing "Don't show notifications at all, then "Show all notifications, and their contents", followed by choosing "Allow floating notifications", then under "On the lock screen", tap it, then choose "Show all notifications and their contents".

- To make notifications appear on the lockscreen, tap "Permissions", then "Show on lock screen", choosing "Always allow".

I've found that 12.5.12 has issues related to mobile data and Wi-Fi - that is, if you have opened apps, and they are running in the background, you'll only get notifications on time if you have mobile data enabled - wifi means they'll be delayed, or only show up once mobile data is switched to.

That said, I've purged the Google Services Framework cache, and cleared all data. I've then re-installed the affected apps, and re-done the notification settings as noted above, and have found things to be behaving.

The reason why I've re-installed them is because each app uses a unique, non-visible notifications ID to receive notifications, and re-installing the app allows a new one to be obtained quicker and notifications to be received (typically within minutes to hours, whenever the next notification is sent by the app developer, as opposed to the app server relying on the old non-existent ID, and you waiting days - which Google Service Framework holds and utilises to present notifications to you). When you clear Google Services Framework, you temporarily stop apps from being able to receive notifications, hence why I speed up the "re-reception" process by uninstalling and reinstalling the apps I really need notifications from, as opposed to waiting for things to "come right".

I've already submitted a bug report to Xiaomi in Mandarin (with diagnostic logs) regarding this issue.

I've found them to be pretty responsive to be fair - the "Repair Mode" English text was all messed up, and they fixed it in 12.5.12, so it is now legible again, as an example.
[Xiaomi Mi 11 Ultra] Jhonxs:
Thanks for the detailed investigation @Cydian Rain !

I've followed the steps highlighted by you and will post my feedback.

So far, what i've done earlier helped but i was missing some messages still ( not as many as before the changes tough )

I'm guessing that upgrading to a rather major version requires some aps to be reinitialized .

Cheers !

ALex
[Xiaomi Mi 11 Ultra] Cydian Rain:
@Jhonxs It shouldn't require apps needing to be uninstalled and reinstalled - though this is the nature of Android, I guess. So heavily customisable from ROM to ROM, that you get issues like this occurring.

As an aside, when I was on iOS, and restored from a backup, turned out the app retained the old Firebase ID, and now two app instances shared that app ID, so I got no notifications, and one of the devs had to step in to remove the conflicting IDs entirely - after a reinstall, and some test notifications, all was good again, so it isn't only Android that experiences this issue! 🙂

P.S. If anyone is getting a "Can't send positioning SMS" error notification, or "Can't activate message call sync" error notification, let me know - I have a workaround that may help.
[Xiaomi Mi 11 Ultra] Jhonxs:
Hello again,

I actually have this issues with activating sms service error ( or something similar ) on one of my sim cards ( SMS works perfectly fine, i know that is something to do with xiaomi service or something, some feature ) .

I'm using dual sim cards and on the other operator it activates just fine also the roaming is working fine as well ( don't know if this matters )

On my xiaomi mi9 it works without an issue on both sim's same operators, same sim cards

I'm in the EU if that matters.

Thanks,

Alex
[Xiaomi Mi 11 Ultra] abdallahmemon:
I have got all the files required as per the guide, hesitant to go ahead with to be honest. Also as an estimate how long would it take?

Should i wait on Xiaomi to fix this on CN with the next update is all I am wondering rn!
[Xiaomi Mi 11 Ultra] hungragezone:
Flash take about 5 mins as I remember correctly

I saw that some body tell that xiaomi stop pushing new 12.5 miui to mi 11 ultra to focus on Android 12. So u should go with it
[Xiaomi Mi 11 Ultra] abdallahmemon:
Good stuff.

I should be doing it after work then.

Apart from what you have shared earlier do I need anything else?
[Xiaomi Mi 11 Ultra] hungragezone:
It's everything u need. When u first start miflash, it will tell u to install driver, just install it, and everything should work
[Xiaomi Mi 11 Ultra] abdallahmemon:
I have to wait 168 hours for bootloader to be unlocked :(

For now can i keep the phone aside while I wait? and Use my oneplus for the next 7 days? Some people say i shouldn't remove the simcard!!
[Xiaomi Mi 11 Ultra] hungragezone:
Yeah, just use your phone normally, dont change sim card
[Xiaomi Mi 11 Ultra] hungragezone:
May i ask if your notifications are working normally now?

Currently Im in global rom, notification works well
[Xiaomi Mi 11 Ultra] Jhonxs:
I found some other settings under

Mobile network settings - advance settings - extreme mode ( disabled that )

Also i see i have the most issues, if all actually, while I'm connected to the WiFi.

So i searched under WLAN - WLAN assistant - traffic mode ( disabled that as well )

So far so good , i even enabled the always on display to see if it makes any difference.

Will see how it goes .

Cheers !

Alex

Le:

I also have a pihole on the network that is doing some filtering . I have only the default list active.

Will try to see if that is to blame as well ( as far as I know there are some rules that are blocking the Xiaomi services that are trying to contact the mother ship :) but not exactly sure )
[Xiaomi Mi 11 Ultra] doribak:
I'm experiencing exactly that! When Wifi will be switched off all of a sudden all the notifications show up at once...
[Xiaomi Mi 11 Ultra] Cydian Rain:
So, time for an update, I guess :)

After I purged the Google Services Framework, and having monitored things over the past 48-72 hours, notifications now seem to be functioning normally - I have an iPad that gets notifications from the same apps I have on my Ultra – cross-checked the notification times on both devices, and they matched. I suspect that either: a) the current version of GSF has had a bug introduced to it regarding notifications, or b) more likely, there's a bug that's been introduced with 12.5.12.0

Have you done what I did regarding notifications, yet?

If so, has this worked for you?

Anyone else? Interested to hear back!
[Xiaomi Mi 11 Ultra] Cydian Rain:
All working well now :)

That said, I'm still keeping an eye on it, just in case.
[Xiaomi Mi 11 Ultra] hungragezone:
Can u explain again your detail solution please?
[Xiaomi Mi 11 Ultra] Cydian Rain:
What do you need me to explain again? :) What it basically came down to was, was deleting the data in the Google Service Framework ("Clear cache" and "Clear Data"), reboot, and reinstall the apps that you need to receive notifications again from ASAP - this includes setting notification permissions so that they appear in the notification shade, and on your lock screen (detailed in my solution).

Be aware that purging Google Services Framework and rebooting means you'll need to remove your Google account from your device, and re-add it, otherwise the Play Store won't function correctly.
[Xiaomi Mi 11 Ultra] hungragezone:
So, that's all u did?

Let me try to explain from beginning:

- From clean CN rom, open Get app app and download playstore

- Open playstore and login to your google acc

- Download all app u need, and open to configure it

- Clear cache and Data of Google Service Framework, reboot phone

- Uninstall apps u need to make notifications work then reinstall them again

- If u want notification on your lockscreen or shade, re-configure the noti options

Am i right?
[Xiaomi Mi 11 Ultra] Jhonxs:
One other thing that I've tried yesterday.

I installed the latest APK for Google play services from APK mirror.

I have WhatsApp backup automatically set to be done early in the morning.

When I woke up I saw that Whatsapp backup was frozen at checking google backup step.

As i previously know, Whatsapp is dependant on Google drive to synchronize.

Checking google drive i saw that it was crashing.

I cleared all data , unninstalled google drive and installed it back but it was still crashing.

I then remembered the update that i made and went to Google play services and selected "uninstall updates" option in the app settings.

As soon as I did that a lot of notifications started to appear , for some other applications as well ( Gmail, teams, outlook etc ).

In conclusion you may want to check this as well on your phone.

I haven't had any issues with notifications after doing this .

This is the current version that I'm using.

Also i cleared the data for the other google related aps and services .

Mind you i also reinstalled Whatsapp and other aps without any particular improvement on the notifications.

I suspect the google services are very sensitive on this CN ROM.

I believe I've read somewhere that is not indicated to update the google related aps from the CN MIUI store. Maybe some can confirm or infirm this.

Thanks and sorry for the lengthy post
[Xiaomi Mi 11 Ultra] hungragezone:
I think after download playstore from Get app

U dont need to install any google services manually. They are auto installed by google play
[Xiaomi Mi 11 Ultra] Cydian Rain:
Pretty much, all you need to remember is, you’ll need to remove your Google account once you “Delete all data” and “Clear Cache” from Google Services Framework, and re-add it. To do so, open the Play Store, and sign in. Otherwise, Play Store won’t function correctly until you do.

To remove, go to "Settings"> "Accounts & Sync", tap your Google account, then tap “More…”, at the bottom, then “Remove Account”.
[Xiaomi Mi 11 Ultra] hungragezone:
I read again your previous post. And can i ask u last question: do i need to clear cache of google services framework to make notification works normally?
[Xiaomi Mi 11 Ultra] bing1221:
Many notifications won't work with CN rom. Flashed to EU and fixed the problem.

ex. ring app, home assistant etc...
[Xiaomi Mi 11 Ultra] Cydian Rain:
Yes, that is correct - I had to do this a few times to have notifications work correctly, just FYI. Each time, I chose "Clear Cache", then " Clear All Data", then uninstalled and reinstalled the apps I needed notifications from ASAP.
[Xiaomi Mi 11 Ultra] hungragezone:
I just flash back china rom yesterday, and will wait at least 1 week to see that notification works or not. Missed a lot of notifications in 1 day :(
[Xiaomi Mi 11 Ultra] Cydian Rain:
Make sure you remember to enable notifications for each app, by pressing and holding on the app, choosing "App Info", then scrolling down to the notification categories, tapping them, and choosing " Show all notifications, and their contents" for each category.

Also, enable lock screen notifications under the app's permissions, autostart, and lock the application (tap three bars icon at bottom of screen and hold down on the app, tap the lock icon tat appears) - it'll stop MIUI killing the app, and set Battery Saver in the app's MIUI settings to "No restrictions" :)
[Xiaomi Mi 11 Ultra] hungragezone:
Almost all of my apps auto set to show all noti, and i dont think "enable lock screen notifications under the app's permissions" is neccesary. That permission is quiet useless
[Xiaomi Mi 11 Ultra] Soane28:
I have had the notification issues on and off since updating to enhanced version, and finally the following solution appears to have fixed this issue properly (receiving all notifications from all Google apps instantly as they come through): Download and install the latest APK of Google Play Services (21.33.14). Once installed, clear all data and cache from every Google app including Google Play Store, Services and Framework (also ensure these are up to date on latest versions). Restart your phone and it should work.
[Xiaomi Mi 11 Ultra] hungragezone:
Nice, i will try it

Thanks for your suggesstion

/just check again, my google services framework already at 21.33.14
[Xiaomi Mi 11 Ultra] Soane28:
Try clearing all data and cache from every Google app, check Play Store and Framework are also up to date and see if that changes. If not, I have also done the following (which didn't work but might work in conjunction with the above): WLAN, WLAN Assistant, Traffic mode OFF. Sim Cards & Mobile Networks, Advanced Settings, Extreme Mode OFF. Fingers crossed.
[Xiaomi Mi 11 Ultra] hungragezone:
I tried clear all data and cache of google app, restart, remove and add again google account back (to make play store works again). But messenger and zalo still didn't show notifications :(

Do u turn off Sleep mode in Scenarios?
[Xiaomi Mi 11 Ultra] Cydian Rain:
When you say "every Google app", do you mean ones specifically made by Google, or every app on your device? Just checked, and my Play Services is 21.36.14 - this issue has returned, but not sure if due to that. Is yours still working correctly a few hours later (i.e. now)?
[Xiaomi Mi 11 Ultra] Cydian Rain:
It's not necessary for this, but it is if you want app notifications on your lock screen once this mess we're all in has been sorted out.
[Xiaomi Mi 11 Ultra] Soane28:
Every Google app (Play Store, Services, Framework) then all apps with notification issues that rely on Google to function. For me it was Whatsapp, Facebook and FB Messenger.

Once I installed latest version of Google Play Services APK, I still had issues. It was only until I cleared all data and caches for each app after the install then restarted phone that it worked successfully.

Notifications have been coming in on time all day so far from every app I had issues with. Hoping it doesn't change as this is the best result I have got since updating to enhanced version.
[Xiaomi Mi 11 Ultra] Soane28:
Yes, Sleep Mode under Scenarios in battery settings must be turned OFF. This includes no restrictions in battery settings for every app that requires google to function.
[Xiaomi Mi 11 Ultra] hungragezone:
this mess make me so sick

after turn off scenarios, put no restriction to every apps that i need noti, their notifications come back.

But i dont like this temporary solution at all. I only come back to CN rom because of battery life, global is not good at all.
[Xiaomi Mi 11 Ultra] Cydian Rain:
Ah, OK. I ended up uninstalling all updates to the Play Services APK, and forbidding auto-updates for the time being. Will purge data and caches on the apps, and keep an eye on things...

I agree completely. I ended up uninstalling all Google Play Services updates (searched for it in System Apps, then tapped "Uninstall Updates"), and deleting all data from the apps I wanted to get notifications from, and doing the same to Play Store, Google Services Framework and Google Play Services. Once that was done, I rebooted my phone, re-added my Google account, then in Play Store settings, made sure auto-updates over WiFi were off. (See Soane28's reply to me).

Now, things look to be behaving, but I am keeping my eye on this. And to think things were rock-solid before 12.5 Enhanced... We're not asking for much, just our notifications.
[Xiaomi Mi 11 Ultra] hungragezone:
Ahh, dont know how long i can live with this shiet bug,so tired.

Xiaomi stop pushing miui 12.5 update so this problem will stay for very long time zzz

And my life without normal notification is so sad. Should come back to global 🙄
[Xiaomi Mi 11 Ultra] doribak:
This is so annoying on so many levels, can't believe we buy such an expensive phone and deal with this crap.

I'm going back to Samsung at the moment there's a new phone.
[Xiaomi Mi 11 Ultra] Cydian Rain:
Just as an FYI, I've submitted a very detailed bug report to Xiaomi in Mandarin, with logs.
[Xiaomi Mi 11 Ultra] Soane28:
Perfect. I submitted a bug report awhile ago but I doubt it was clear given I only speak English. The more reports sent the better.

It is really unacceptable that we can't even get notifications. Problem is I'm unable to switch as I just spent alot on getting the Ultra and most people in my country wouldn't buy a CN model. So I need to make this work...
[Xiaomi Mi 11 Ultra] xNAPx:
Just go global guys
[Xiaomi Mi 11 Ultra] Cydian Rain:
Totally understand your feelings: I go China ROM for a few reasons, some of which are the storage capacity (512GB vs 256GB) and call recording feature, plus faster updates.

A few versions ago, I had Spotify controls disappear, and one screen was untranslated from Mandarin - a bug report for both, with logs and screenshots had them both solved in the next update. They are quite responsive - and I suspect because this is happening on the CN ROM, non-GMS users are also just as impacted as we are. Time will tell - your notifications still holding up? I've had to purge all data for some apps a few times since doing what I did last night.
[Xiaomi Mi 11 Ultra] Soane28:
Sadly, after 24 hours I've noticed notifications have dropped again (Gmail, Facebook). So seems this is only a temporary fix...
[Xiaomi Mi 11 Ultra] Cydian Rain:
Out of curiosity, would you know what framework Xiaomi uses in China to deliver notifications, seeing as GMS is banned on the Mainland?
[Xiaomi Mi 11 Ultra] Soane28:
No idea sorry. I assume this is why notifications are not playing ball on Google dependent apps. Either way, you would expect the use of Google apps if you travelled overseas for example. Hoping for update soon....
[Xiaomi Mi 11 Ultra] Cydian Rain:
You and me both 🙂 AFAIK, they happen about once every three months - it might be sooner. Also raises the question of whether EU ROM Enhanced has this bug, too. And if it does... Oh boy...
[Xiaomi Mi 11 Ultra] lunarken:
I solved my notifications problem with adb method.
[Xiaomi Mi 11 Ultra] hungragezone:
can u explain for eveybody here?
[Xiaomi Mi 11 Ultra] mervs2402:
I don' think the notification is an issue here. The issue I think is phone switching off internet access to apps when the phone is idle or the app goes into idle. Because when an sms is send to my phone, there is no delay in the notification even when it has been idle. While the phone is being charged, I notice that notifications work well, because the phone is kinda not sleeping i think.

Also I have read in the mi community about people complaining about the same issue on a Poco F2 pro and the issues was almost a year ago. That post ended with no solution even though it was active until last month. This problem is pretty serious and quite a major factor to my disappointing experience of owning a MIUI phone.
[Xiaomi Mi 11 Ultra] hungragezone:
Before Enhanced update, everything works normally, its the point

and SMS app is a system app of MIUI and will never be affected by any battery saver method. And the problem doesn't happen with china app, only global app with gsf
[Xiaomi Mi 11 Ultra] Cydian Rain:
Exactly. Before Enhanced, everything was fine. Now, we have this (annoying) issue. Still haven't heard what this "adb" method supposedly is, though.
[Xiaomi Mi 11 Ultra] lakhobim:
If they talking about this adb command

dumpsys deviceidle disable (prevent device from deep sleep)

I already try not working still notification not coming when phone is idle and screen is off
[Xiaomi Mi 11 Ultra] Cydian Rain:
Have you tried what Soane28 did, plus what I described?

Also, make sure DND (Do Not Disturb) mode is not active - notifications will appear in the notification shade if that is the case - they will appear only on the lock screen if the app permission of "Show on lock screen" is set to "Always allow" - to do this, press and hold on the app, and tap "App info".

(Lock screen notifications will display whether or not DND is active, so long as you permit the app to display notifications on the lock screen).
[Xiaomi Mi 11 Ultra] xNAPx:
Did anybody try what I suggested? To convert Google services in a system app?
[Xiaomi Mi 11 Ultra] lakhobim:
But our system partition is read only.frist you have converte in to read and write access.

And second thing google play service is already system app in china stable
[Xiaomi Mi 11 Ultra] xNAPx:
I thought it wasn't since it's an downloaded app
[Xiaomi Mi 11 Ultra] hungragezone:
Nope, it already in the system from beginning
[Xiaomi Mi 11 Ultra] hungragezone:
Lmao

This **** bug coming back. I finished all the download long time ago and it keep stuck like that, cant clear any of them
[Xiaomi Mi 11 Ultra] Cydian Rain:
Ah, that Chrome one has always been around, and isn't the fault of Xiaomi - it also shows up when a download is complete too. To "fix", kill, and relaunch, Chrome.
[Xiaomi Mi 11 Ultra] hungragezone:
Chrome and onedrive

In global i didnt have this problem
[Xiaomi Mi 11 Ultra] Cydian Rain:
Oh, OK. I've only ever been on CN ROM. Might be worth to see if some setting is active in Chrome that causes persistent (undeletable) notifications until it is killed, and restarted?
[Xiaomi Mi 11 Ultra] hungragezone:
I didnt set any setting manually, dont know what problem cause trouble with download of onedrive and chrome
[Xiaomi Mi 11 Ultra] abdallahmemon:
Congratulations, i am on global rom now!

Any fix for apps like Netflix not working? What other apps should i expect to not be working with me?
[Xiaomi Mi 11 Ultra] hungragezone:
I think the problem come from unlocked bootloader
[Xiaomi Mi 11 Ultra] xNAPx:
Indeed, process is difficult but doable, honestly I didn't dig it up as I am not interested in Netflix on 0hone
[Xiaomi Mi 11 Ultra] hungragezone:
Just root using magisk then magisk hide module, done
[Xiaomi Mi 11 Ultra] Jhonxs:
Hello everyone,

After a lot of tries and changes, updates to individual apps, disabling miui optimizations ETC. I've finally gave up...

I installed the xiaomi.eu stable ROM

Everything is perfectly fine now , i got all the notifications back and found no issues so far ( banking, payment, productivity, WhatsApp, etc )

From my experience, after trying so much to make it work, i believe the only real solution would be either do a hard reset ( maybe even use TWRP to format data partition ) or install xiaomi.eu stable/weekly ROM's

Regarding the above Netflix error , in my case it works flawlessly with the bootloader unlocked and running xiaomi.eu stable ROM ( can't say about the weekly one ).

I highly recommend to FINISH the initial OS setup after you unlocked the bootloader . I had an issue where i forced closed the phone when the os was loading and i was not able to decrypt the partition in TWRP and the phone was automatically rebooted into recovery ( TWRP only )

I found one of the best videos for flashing the TWRP and xiaomi.eu ROM for mi 11 ultra.

It includes the error that i encountered when trying to install the TWRP directly to the recovery partition.

I highly recommend to watch it closely

Also from my experience : Take care on what USB C cable you are using and in what PC/Laptop port are you plugging the cable .

Also check the orientation of the type C plug . I found that it only worked if i plug it in only in one side ( i thought that it would work on any side but it doesn't, guess it's not reversible ? )

You can use the xiaomi unlock app ( the one that you unlock the bootloader with ) to check if the connection is ok with the phone ( make sure you don't have any errors when refreshing the interface ).

Good luck to everyone !
[Xiaomi Mi 11 Ultra] Jhonxs:
Regarding the Netflix app
[Xiaomi Mi 11 Ultra] hungragezone:
xiaomi.eu already patched system to bypass safetynet

so u can run everything normally
[Xiaomi Mi 11 Ultra] abdallahmemon:
Are there any downs of eu rom? Should i consider moving from global to eu?

I don't particularly care about netflix to be honest. I could do without it.