microg / GmsCore

Free implementation of Play Services
https://microg.org
Apache License 2.0
8.21k stars 1.69k forks source link

Gmail not registering itself for google cloud messaging!? #398

Open dzizi opened 7 years ago

dzizi commented 7 years ago

I am on LineageOS 14.1 with microG working and push notifications working, but cant get gmail to register itself when installing it as new app to receive push notifications, same thing with inbox by google; i have 2 registered apps using google cloud messaging (google play store and youtube).

Any tips?

codebam commented 7 years ago

Check to make sure that Gmail has the correct app permissions? It needs to be able to read your accounts

dzizi commented 7 years ago

It has all permissions.

ale5000-git commented 7 years ago

@dzizi: Try to delete the data of Gmail, it then should re-register itself.

dzizi commented 7 years ago

@ale5000-git: I tried but it didn't work. Btw i am using aquamail atm; it's working ok and registers itself with gcm. problem remains...

ale5000-git commented 7 years ago

I have tried GMail some time ago and it worked, strange.

Have you tried to completely uninstall GMail (if it is a sytem app also remove the apk in the system partition), restart the phone and then reinstall it?

dzizi commented 7 years ago

@ale5000-git: Yes i did try all of that, no luck; (by default it installs in /data/app)

kernitus commented 6 years ago

@dzizi @ale5000-git Was this issue ever solved? I'm having the same problem

ale5000-git commented 6 years ago

I have always installed GmsCore as system app and never had this problem with Gmail. Maybe it happens when GmsCore isn't a system app.

kernitus commented 6 years ago

I have it installed in system/priv-app

kernitus commented 6 years ago

@ale5000-git one further thing I noticed is that if I try to send an email I get a toast notification that GMail cannot connect to Google Play Services and to try again later (I believe sending emails still works though)

ale5000-git commented 6 years ago

@gvlfm78: Try to check signature spoofing with this app.

kernitus commented 6 years ago

It says signature spoofing is enabled

-------- Original Message -------- On 8 Nov 2017, 20:18, ale5000 wrote:

@gvlfm78: Try to check signature spoofing with this app.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

kernitus commented 6 years ago

@ale5000-git the app tells me signature spoofing is enabled

ale5000-git commented 6 years ago

Do you have everything checked in microG self check?

kernitus commented 6 years ago

@ale5000-git Yes, everything is checked

kernitus commented 6 years ago

@ale5000-git I have just nuked everything related to microG and Gapps and reinstalled microG core + GCM Proxy + UnifiedNlp backends. The issue persists even after reinstalling apps like Gmail and Keep, telling me they are "having trouble with Google Play services. Please try again".

ale5000-git commented 6 years ago

@gvlfm78: I'm not sure but you may have missed something if you have done it manually, to to install it with microG unofficial installer to be sure.

First remove Google account, remove all microG apps and Gmail, use the installer, then readd the account and Gmail.

kernitus commented 6 years ago

@ale5000-git Yes that is what I had originally used. After reinstalling it manually 3 times in a row, a few days and reboots later it still not working it randomly started working... I have no idea what made it work...

breversa commented 6 years ago

@gvlfm78 You're lucky ! I'm having the same problem as you :

... but Gmail doesn't register in my list of GCM apps, though it has all permissions (except calendar, but it shouldn't matter), especially the "Google Mail" extra permission.

Does anyone know a way to force Gmail to register itself with GCM ?

theel0ja commented 6 years ago

This is not fixing the issue, but I suggest you to use K-9 Mail with Gmail instead.

breversa commented 6 years ago

@theel0ja Indeed, it does not fix the issue, as I don't need an e-mail client for my Gmail account, but the Gmail app itself to work better/properly. Thanks for your suggestion though, I hope it'll help someone. :-)

kernitus commented 6 years ago

Well, now Gmail doesn't seem to show any Gmail accounts as logged in despite them being so. It even has all permissions.

breversa commented 5 years ago

Has anyone found a way to make it work yet ?