Hi guys,
I found how to solve the annoyng notification bug on mi Xiaomi redmi 2 note.
I had this bug only on wifi with 5.9.24 multi, 5.10.9 ita, aosp.
I hope this will work for you also. Give a try.
Me and this forum are not responsable for any damage to your device. Do this at your own risk
Why this bug?
(jump to the solution if not interested)
The problem is in three letters: GMC. Google Cloud Messaging.
GCM is a platform that apps uses to exchange data and recieve push notifications.
In my case, GCM doesn't work on wifi network.
Why?
It looks that lollipop ask for an ipv6, and some routers don't like this. So the connection is unstable, and GCM does'nt work correctly.
How to solve this?
Two ways:
1. Disable ipv6 on your router
2. Disable ipv6 on your smartphone
For the first solution, go to the control panel of your router.
I chose the second one, and here's what i did.
two methods available, simple and advanced.
Simple method
1. Download Ipv6 disable app, launch it and give root access
2. Connect to wifi, launch again the app
3. Check the "Ipv6 status", and turn off the switch
That's it. Now GCM will start to work again, together with push notification.
In the free version you can't flag "remember network", so you have to disable ipv6 every time you connect to wifi.
If you don't like this, buy the full version, or go to the advanced method
Advanced method
You will create a script that disable ipv6 every time you connect to wifi.
Here we go.
1. Download Script Manager and give root access
2. Open Script Manager, select Browse as Root, and navigate to a folder on your phone where you would like to have the script stored (for example SD card)
3. Click the options button and select New Script
4. Name it something relevant, e.g., disable_ipv6
5. In the editor that it opens, go below the "#!/system/bin/sh" line and enter the following:
echo 1 > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6
6. Click the options button and select Save
7. Select the script you just created in SManager and it will open a dialog, at the top select Su and Net, this will run the script as root and do so any time there is a change in the network interface
8. Click Save
Now, whenever you connect to a wireless network, this script should run and disable ipv6. You can test this by disabling wifi, enabling it, and verifying that there is a 1 in the file /proc/sys/net/ipv6/conf/wlan0/disable_ipv6.
All done. Your notification should now be back and work correctly.
For the lazy ones, here is the script. Just copy and paste in your sdcard and skip points 3, 4, 5 and six (if this don't work, don0t be lazy and create your own script!)
Verification
open disable ipv6 app and check the switch taht indicates ipv6 status.
or, if you prefer, go to proc/sys/net/ipv6/conf/wlan0/disable_ipv6 , and you'll find a "1" inside the file
Important note: I am not an expert of script etc, i took the advanced method from here (copy and paste). All the creadits go to the author of the post. I just understood the link between this guide and the annoyng notification bug.
Having trouble with the script?
I had once, while using google maps in pedestrian mode, with gps and wifi enabled (not connected to any network).
The script started to run again and again, so i opened it with Smanager, unchecked "Su" and "Root", and save.
When I went back home, i thought i had to enable again su and net in the script to get wifi notification work, but there was no need to do this.
So, if you have trouble, just uncheck su and net, and enable again only if needed
Hope this can help.
Good luck and enjoy your xiaomi!
I found how to solve the annoyng notification bug on mi Xiaomi redmi 2 note.
I had this bug only on wifi with 5.9.24 multi, 5.10.9 ita, aosp.
I hope this will work for you also. Give a try.
Me and this forum are not responsable for any damage to your device. Do this at your own risk
Why this bug?
(jump to the solution if not interested)
The problem is in three letters: GMC. Google Cloud Messaging.
GCM is a platform that apps uses to exchange data and recieve push notifications.
In my case, GCM doesn't work on wifi network.
Why?
It looks that lollipop ask for an ipv6, and some routers don't like this. So the connection is unstable, and GCM does'nt work correctly.
How to solve this?
Two ways:
1. Disable ipv6 on your router
2. Disable ipv6 on your smartphone
For the first solution, go to the control panel of your router.
I chose the second one, and here's what i did.
two methods available, simple and advanced.
Simple method
1. Download Ipv6 disable app, launch it and give root access
2. Connect to wifi, launch again the app
3. Check the "Ipv6 status", and turn off the switch
That's it. Now GCM will start to work again, together with push notification.
In the free version you can't flag "remember network", so you have to disable ipv6 every time you connect to wifi.
If you don't like this, buy the full version, or go to the advanced method
Advanced method
You will create a script that disable ipv6 every time you connect to wifi.
Here we go.
1. Download Script Manager and give root access
2. Open Script Manager, select Browse as Root, and navigate to a folder on your phone where you would like to have the script stored (for example SD card)
3. Click the options button and select New Script
4. Name it something relevant, e.g., disable_ipv6
5. In the editor that it opens, go below the "#!/system/bin/sh" line and enter the following:
echo 1 > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6
6. Click the options button and select Save
7. Select the script you just created in SManager and it will open a dialog, at the top select Su and Net, this will run the script as root and do so any time there is a change in the network interface
8. Click Save
Now, whenever you connect to a wireless network, this script should run and disable ipv6. You can test this by disabling wifi, enabling it, and verifying that there is a 1 in the file /proc/sys/net/ipv6/conf/wlan0/disable_ipv6.
All done. Your notification should now be back and work correctly.
For the lazy ones, here is the script. Just copy and paste in your sdcard and skip points 3, 4, 5 and six (if this don't work, don0t be lazy and create your own script!)
Verification
open disable ipv6 app and check the switch taht indicates ipv6 status.
or, if you prefer, go to proc/sys/net/ipv6/conf/wlan0/disable_ipv6 , and you'll find a "1" inside the file
Important note: I am not an expert of script etc, i took the advanced method from here (copy and paste). All the creadits go to the author of the post. I just understood the link between this guide and the annoyng notification bug.
Having trouble with the script?
I had once, while using google maps in pedestrian mode, with gps and wifi enabled (not connected to any network).
The script started to run again and again, so i opened it with Smanager, unchecked "Su" and "Root", and save.
When I went back home, i thought i had to enable again su and net in the script to get wifi notification work, but there was no need to do this.
So, if you have trouble, just uncheck su and net, and enable again only if needed
Hope this can help.
Good luck and enjoy your xiaomi!
Last edited: