-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Register for push notification doesn't work with v0.2.16.204713 #1329
Comments
this issues related to VXP as well: about bug i can't login on MICROG Best Regards |
I found that it does work, but it takes much longer than it should for an app to eventually register (>1 day), whereas in previous versions it happened right away. |
Have you tried to dial the |
It's a different problem; Cloud Messaging in GmsCore connects fine, but the apps don't register like they should. |
I have the same problem on a fresh installation of LineageOS18.1 (Android 11). |
I can confirm this. Also Android 11, also work fine after downgrade to 2.15.
|
I can confirm this issue in my Xiaomi Poco F1 when running CrDroid 7.2, ArrowOS ROMs (Android 11). I can also confirm that downgrading to v0.2.15 fixes the issue. |
OK, that's awkward, I have just reinstalled microG Services Core Version I'm using Magisk Canary (21410) and even reinstalling microG DroidGuard Helper after uninstalling it didn't stop it from working. In MagiskHide microG Services Core is checked (which gets done automatically) and microG DroidGuard Helper is unchecked. I don't know what's going on. Any explanation for that? P.S. I'm going to uninstall microG DroidGuard Helper again, because it's pointless, unless someone can tell anything different. |
I also have this issue. Apps won’t register. I can see I am using the app I am using microg 0.2.17 on Android 7.1.2. Downgrading to 0.2.15 solve the problem. If this regression has been introduced between 0.2.15 and 0.2.16, it must be in one of these commits. |
@mar-v-in I saved a log, so if you tell me what to look for I can search. Would be nice, if anyone could verify that this might be the issue here. |
Could be. I've noticed it toggling back Off on its own after a little while. Then I toggled it Off on purpose later, and when I checked later it was back On. When it's properly activated, it stays On, though. I've just been using 0.2.15 for setup and then upgrading back to 0.2.17, things work fine that way and it hasn't toggled Off on its own. |
A simple workaround is linked in issue #1408. |
I tried the workaround from #1408, but Signal still insists on missing Google Services sadly. On a test device with LOS17.1 (Android 10) I use EdXposed&FakeGapps Module for signature spoofing. This device has also 0.2.17 installed since ... a while, have lost time tracking. Tried installing Threema and Signal today and they both registered just fine. Can someone confirm, they are able to reproducably get Signal to register with a newly installed MicroG instance on Android 11? |
@9Lukas5, I'm on v0.2.18.204714 from the microG F-Droid repo now and have not experienced any problems so far, but I'm not using Signal (yet). |
I am using Signal (Molly) on Android 11 and it registers and works fine. |
I just ran into the same issue when setting up my new phone (i.e., fresh install of the latest build of LineageOS for microG). All apps failed to register for GCM, showing the same "Checkin is disabled" RunTimeException. Since everything was working fine on the old device, I started comparing the contents of /data/data/com.google.android.gms on both devices and found these two lines:
in shared_prefs/com.google.android.gms_preferences.xml, which were present on the old device, but not the new one. I added the two lines manually via adb, rebooted, and everything appears to work fine now. That is, the device registration switch does not toggle back to off any more and applications register fine; I did not get any push notifications yet. |
@jkehne What's your Android version? |
@jkehne After a fresh installation of microG with all points checked in |
@jkehne nice finding, but in my case these were already true :/ Threema, Twitter etc. register fine, but Signal still insists on telling me "no google services installed" on the Android 11 device.^^ |
@righy Android 10. To be precise, Lineage for microG 17.1, built on Jan 29, 2021. The device is a OnePlus 7. |
Had the same issue on LineageOS 18.1 with microG 0.2.18.204714 and these two lines fixed it. Push notifications now work as expected. |
i am on los 18.1 with microg. i tested a lot but the only way to get signal working was to install signal over the patched playstore. |
I'm seeing the same on Lineage for Microg 17.1 (Android 10) with microg 0.2.18.204714. I noticed that:
Seems like the wires got crossed somewhere? When I enable "Google Device Registration" and keep "Cloud messaging" disabled, the xml file looks good (both are true), and then reboot, the UI shows both as enabled and apps can register normally. This is similar to #1329 (comment), except that I didn't have to enable "Cloud messaging" after the reboot. |
Stable is now v0.2.19.211515. |
I saw |
I experience the issue with LineageOS for microG (lineage_sargo-userdebug 11 RQ2A.210405.005 eng.root.20210411.235807 dev-keys) installed on Pixel3a, together with Line App. Ran tests with PushNotificationTester. Logcat output the following, https://pastebin.com/raw/uZEMwqwE which revealed the "GmsGcmRegister: java.lang.RuntimeException: Checkin disabled" and lead me to this thread.
Could you please elaborate on how to add these lines and where? Thanks. |
Do you actually need cloud messaging for Line, though? Mine uses it for... something? but it certainly isn't for message notifications. Or are you using Lite? Might be different with Lite. Regardless, you probably don't need to do that. You may be able to get it to work by just enabling Device Registration, then rebooting, and enabling Cloud Messaging afterwards. Maybe a second reboot for good measure but you should be good like that. |
@Ammako Yes, Line as in jp.naver.line.android I use this app daily to work and receive calls. Right now not having notifications is impeding my work.
So you mean repeat the microG setup in multiple steps and rebooting in-between each time? PS: untoggled Device Registration and Cloud Messaging---reboot---Enabled Device Registration---reboot---Enabled Cloud Messaging---reboot. Push Notification Tester:
PPS: are you running Line on LineageOS w/ MicroG? |
Like I said, I've never had issues getting notifications from Line even without Play Services or microG, but maybe it's different for you for some reason. Closed-source app, who could tell -shrugs- Depending on the app, it's possible you may need to reset it by clearing its data, before microG is able to pick it up. I'm not sure if that could apply to that push notifications tester app. Do both options show up as On when you check microG settings? And it doesn't work still? If all else fails, you may have luck downgrading microG to 0.2.15 (gotta clear microG app data in the process), setting up your apps under that older version, and after that you can update back to newest. You'll have to enable usb debugging and give root permissions to adb, and then replace the .apk at /system/priv-app/GmsCore using adb push. I'll give you better instructions later when I'm home, if someone else won't already have done it by then. |
So the PushNotificationTester didn't work. But somehow now several apps, incl. Line, registered. So it work as far as my particular issue is concerned. Thanks! |
Everything should already be fixed on the latest version so I close it for now. |
Hey all, I can't register any app to receive push notifications.
I just reinstalled a whole new system, so I had to setup microG again. With v0.2.16.204713 I just can't register my apps to receive push notifications, but when I downgrade and goes back to v0.2.15.204713 it works. I used the "Push Notification Tester" app to pinpoint the problem, but I can't help more, sorry.
System :
Android 11
Custom rom : CrDroid 7.1 (for OnePlus 7 Pro)
The text was updated successfully, but these errors were encountered: