-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google Cloud Messaging doesn't work properly in LineageOS for microG 15.1 (on OnePlus 3T) #502
Comments
Same here, Telegram and Whatsapp in my case |
Same here, OP3 (non-T). For some reason the banking app I use needs GCM 🙄 |
This is a duplicate of #439 I've manage to register Whatsapp with microG GCM using an older build (2.17.351), some newer builds fail to register with microG, probably the same applies to other apps PS: For Telegram users you can use the Telegram from F-Droid, don't need GCM |
I have the same problem with an app we use at my work place. |
@Generator Do you get push notifications once registered? I did try this some weeks ago, registered to GCM using an old WhatsApp version by changing the system clock and then updated to a newer version that had not yet expired. I never got push notifications for WhatsApp. The GCM status in the microG app still shows "no messages received so far" for WhatsApp after a couple of weeks. edit: |
@drrossum changing the system clock didn't work here, WhatsApp still notifies to update the app and didn't register GCM, WhatsApp 2.17.351 was the older version that i could install and register GCM, however with newer versions 2.17.351 wont work anymore if you want to install and register GCM, will be a newer version, til the newer versions wont register anymore if the bug isn't fixed. Still have some apps that couldn't register GCM, and i'm experience some battery drain, cant tell if is related with microG or not, that didn't happen with Android 7.1.2 Tested with: |
This is what I do, on Lineage 15.1 (8.1)
I'm now trying WA 2.17.395, the next stable version that has not yet expired. It looks like it doesn't register but does receive push notifications if WA was registered with v2.17.351. I need to test this more, though. |
logcat? |
Came across this workaround
Source: XDA microG thread Didn't test it, but can probably work |
That should work at the cost of increased battery consumption |
So I tried this workaround from @drrossum : #502 (comment) And it doesn't work for me, see this post: As this solution "Disable battery optimization (doze) for WhatsApp and you should receive messages without delays": it's not satisfying either from my experience. |
It doesn't work for me either anymore. My apps were still registered in GCM but did not receive push notifications anymore. The workaround that had still worked for me on march 26 no longer worked only a week or so after that date. |
I can confirm the same behavior on my OnePlus 2 using microG LineageOS 15.1 latest weekly build. Some apps seem to receive notifications sporadically (in my case e.g. signal). Other apps register fine and are shown in the Google Cloud Messaging List of microG Settings, but never receive any message. One app (Threema in my case) doesn't even register and doesn't show up in the list. Is there any specific info we can supply to help understanding the root cause here? |
Could it have something to do with this: https://developers.google.com/cloud-messaging/faq Perhaps the move the FCM has interfered with GMSCore functionality? At the very least, could this explain why some push notification applications work as intended, whereas others don't? |
We shouldn't mix 2 different problems:
The first need FCM support in microG while the second is the one discussed on #338 |
We are using
|
Possible workaround: |
The problem should be fixed in the new version of microG GmsCore released yesterday, I'm closing this for now. |
I've flashed the latest version and it looks like registering for GCM doesn't always work. Some apps have sucessfully registered, others haven't. Consequently, push notifications do not work in the latter cases
Any ideas?
The text was updated successfully, but these errors were encountered: