NekoX-Dev / NekoX

A third-party Telegram android app.
GNU General Public License v3.0
36 stars 337 forks source link

Push notification not working #535

Open Pciuggo opened 3 years ago

Pciuggo commented 3 years ago

Hello, I downloaded the apk with GCM on github, but push notifications is not working properly, I need to open the app to see incoming messages. Any solution?

Kind regards!

CaptainCoward commented 3 years ago

Same here on my Huawei P8 lite 2017. I tried all kind of settings. Sometimes it works sometimes it doesn't seems like the process sooner or later just stops working or something like that.

I use the F-droid version. I also would love to have a soltuion for that. It kinda makes the app pointless without working notifications. I always must check my phone to get sure nobody wrote me.

Younes-L commented 3 years ago

@CaptainCoward Huawei phones (and many other phones) have built-in features to kill background apps including nekoX. With exception for a few hardcoded whitelisted popular apps, these OEM features prevent most apps from working correctly in background.

Make sure to disable these features by following this guide https://dontkillmyapp.com/huawei

CaptainCoward commented 3 years ago

@Younes-L Hey thank you. I already disabled these yet it still gets killed. I guess i have to uinstall that annoying "PowerGenius" app maybe that helps. I'll try to figure it out. Thanks again :)

CoffeeDrinker01 commented 2 years ago

I would like to report my findings So as soon as i installed neko x(fdroid version) it was giving push notifications for me. After enabling this setting there were no push notifications IMG_20210803_224318 IMG_20210803_224326

I tested this using 2 different devices IMG_20210803_225424 This is the app version

After disabling that setting push notifications started coming for me.

I had already enabled background usage so my phone isnt killing the app

CaptainCoward commented 2 years ago

For me Notifications just started working for whatever reason. I didn't change anything. I now use the "mini version" which i didn't before and that was it.

TakuyaSama commented 2 years ago

Same issue here, I only receive the push notifications, as well as Telegram Calls, while I'm with the app on foreground, after a few seconds of change to other app in foreground and Nekogram X is moved to background, the connection gets severed, and I won't receive anything, being basically useless. I'm on LOS 18.1, with some settings tweaked, like added Nekogram X to the list of Non optimized apps for the battery, activated the in-app settings to keep the service alive + background connection, but this seems to do nothing in my case. My build is 8.0.0-RC01 Mini ARM64-v8a ReleaseNoGCM. I've been using Nekogram X coming from Telegram FOSS for about 1 month already and in general, it seems an improvement to me, but it has some issues like this one, which is about a core feature, as it's get notified when you get a message, when someone calls you or something like that, that I'd love to see fixed whenever the devs can, it's such an important feature. Apart from that, thank you very much for the great app :). Bests ^^.

renyhp commented 2 years ago

I have the same problem on LOS for microG 18.1, NekoX v8.1.2 arm64-v8a miniAppleEmoji.

@CoffeeDrinker01's solution did not work for me.

TakuyaSama commented 2 years ago

I have the same problem on LOS for microG 18.1, NekoX v8.1.2 arm64-v8a miniAppleEmoji.

@CoffeeDrinker01's solution did not work for me.

Same applies for me, on LOS OpenGapps Pico IIRC, 8.1.2 arm-64-v8a-miniNoGCM.

Milor123 commented 2 years ago

Me have the same problem if "keep alive" is disabled ( and exception added acording to dont kill my app) it not push shows

Tested in huawei mate 10 lite, Android 11 MicroG

Tested in Poco x3 pro, Android 12 MicroG

asorel1942 commented 2 years ago

I did not have this issue before, running rooted Oneplus 9 Pro with CRdroid (fork/customization of LineageOS) 7. After upgrading to CRDroid 8, which is based on Android 12, I began noticing this issue. Have gone into settings and set Nekogram to have unrestricted background usage, push notifications still do not appear.

ghost commented 2 years ago

Same here. Any fixes? Particularly on microg.

ghost commented 1 year ago

The most disgusting problem I have, is that even caller ID has no ringtone. It just vibrates nonetheless of manually setting it too.

Younes-L commented 1 year ago

even caller ID has no ringtone. It just vibrates nonetheless of manually setting it too.

1) do you use MIUI ? 2) does tandroid (official telegram) client have same problem on your device ?

ghost commented 1 year ago

even caller ID has no ringtone. It just vibrates nonetheless of manually setting it too.

  1. do you use MIUI ?
  2. does tandroid (official telegram) client have same problem on your device ?

Issue is basically this https://github.com/microg/GmsCore/issues/1747

PixsaOJ commented 1 year ago

LineageOS 19, rooted. Unrestricted battery usage, but the service gets cached in memory. It only works if I enable annoying, always on "push service notification".

MicroG is indicating that Nekogram is not using its push notifications.

TakuyaSama commented 1 year ago

Retested on ArrowOS 12.1, GAPPS version, works flawlessly, it seems that, even being the NoGcm on the NekoX side, it steel needs some part of Google Software, I guess, GSF.

0Karakurt0 commented 1 year ago

Make sure to disable these features by following this guide https://dontkillmyapp.com/huawei

It did not help,my system registers that NekoX still has 0 minutes of background power consumption. And no notifications, ofc. I'm not even using MIUI, I'm on DoT OS, it should not be an issue in the first place... And NecoX is the only program that has this issue

Smyl3 commented 8 months ago

No notification at all with Alphadroid A13 with Nikgapps core either. Tried enabling com.google.android.gms/.chimera.GmsIntentOperationService too, but nothing changed.