lineageos4microg / docker-lineage-cicd

Docker microservice for LineageOS Continuous Integration and Continous Deployment
https://hub.docker.com/r/lineageos4microg/docker-lineage-cicd
GNU General Public License v3.0
503 stars 196 forks source link

Line App Notification not working #186

Closed dequegorg closed 3 years ago

dequegorg commented 3 years ago

I have LineageOS for microG (lineage_sargo-userdebug 11 RQ2A.210405.005 eng.root.20210411.235807 dev-keys) installed on Pixel3a, together with Line App.

I wax expecting microG would fix the failing notifications in LineageOS, but it didn't. It seems Line app isn't subscribed to microG cloud notification. And according to the support flowchart this issue brings me here.

Expected behaviour: new incoming messages should push notification in background, while app is closed.

Problem: app is not sending notifications until opened.

Attempts at fixing: disabled battery oprimization for app, enabled background data usage, allowed all essential tracking on Tracker Control.

I'd like to troubleshoot and possibly fix the notification issue (I work a lot with this app). Thanks.

bananer commented 3 years ago

In the microG settings app, is Cloud Messaging enabled? Do you see Line App registered there?

dequegorg commented 3 years ago

In the microG settings app, is Cloud Messaging enabled? Do you see Line App registered there?

Cloud Messaging enabled. Line App not registered there.

bananer commented 3 years ago

If cloud messaging works for other apps, this does not seem like an issue with microG or l4m. Is it a fresh install of Line App or did you restore from a backup? Could you try re-installing?

dequegorg commented 3 years ago

Hi, I literally just installed LineageOS w/ MicroG yesterday and installed Line App on top. It's all fresh install.

Note: no application at all is listed under the Cloud Messaging settings of MicroG.

Iey4iej3 commented 3 years ago

First, you need to check that Google device registration is on, and Cloud Messaging sets Receive push notifications. With these enabled, you could try

https://play.google.com/store/apps/details?id=com.firstrowria.pushnotificationtester&hl=en&gl=US

which is an open-source FCM tester, to see where the problem situates.

dequegorg commented 3 years ago

check that Google device registration is on

Check!

Cloud Messaging sets Receive push notifications.

Check!

Push Notification Tester

Prerequisites not met:

Iey4iej3 commented 3 years ago

There are problems in the registration. Maybe you could read the logcat (for Push Notification Tester, which is with less irrelevant data than any app like Line), and upload it if you like (be careful: you have to suppress the confidential data in the logcat - note that once uploaded on GitHub, you have no way to delete it...)

dequegorg commented 3 years ago

Hi, thanks. I collected the log. Thanks for the heads-up on data security. I trimmed what I thought seemed irrelevant. I hope I didn't remove anything useful:

https://pastebin.com/uZEMwqwE

bananer commented 3 years ago

I searched for "GmsGcmRegister: java.lang.RuntimeException: Checkin disabled" which led me to https://github.com/microg/GmsCore/issues/1329

There are a few possible workarounds mentioned in that issue.

Seems like this is an issue with microG and not caused by lineageos4microg, so I will close this.