-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
Push notification are disabled #2529
Comments
Still trying to get push notifications working again. I removed talk app, removed the talk pushhash of the user (mysql table oc_notifications_pushhash), installed talk again and logged in with the user. Message still appears that push notifications are disabled and there's no new pushhash created. @mahibi Any hint how to debug this issue? |
Hey @XueSheng-GIT. Thanks for your report. I tried to reproduce that issue without success.
|
@timkrueger thanks for trying to reproduce!
I did try three different nextcloud instances (two running latest NC24, one running NC25). All with the same issue. Never worked with android studio so far, but will try to gather some logs. Just as an additional side note: the Huawei Mate40pro does not come with GAPPS, but I'm using microg to get push notifications. This works quite well and works without issues for the regular nextcloud app. Talk is registered to receive notifications, but according to microg no messages are received. I'll try to get some logs and will report back. |
@timkrueger I did gather the log with adb and logcat (I assume android studio does the same). I don't feel comfortable publishing this log right here. Can I send it directly to you somehow? UPDATE:
Seems it's really related to the missing GAPPS and microg. But as said earlier, other apps (including nextcloud itself) work just fine with microg and push notifications! |
@timkrueger Do you still need the full log or is the extract mentioned above enough? |
Please sent the logs to tim.krueger at nextcloud.com. |
Is it possible for you to re-install Nextcloud Files? If push then still working with Files, we're more sure that this must be an Talk issue. |
I did already re-install nextcloud files. But now did again (removed the app, installed again and entered the account details). Push notification is working as expected. I took a logcat, just in case it might be helpful. Should I send it to you? |
@timkrueger I can test it tomorrow with microG, if needed. |
One aspect which might be considered is that "signature spoofing" is not possible on (recent) huawei phones. I assume that microG is currently working without issues if signature spoofing is enabled/available. |
Signature spoofing is indeed needed for a working microG. |
I assume SafetyNet is the biggest issue if signature spoofing is not available. But signature spoofing should not be a requirement for push notifications. I'm using microG since nearly two years without signature spoofing and push notifications are working just fine (including a couple of banking apps and nextcloud files of course). |
I am not that into it, but I understand that signature spoofing is needed to "trick" all google calls to be redirect from official gplay services to microG: https://github.com/microg/GmsCore/wiki#system-requirements
In your logcat I see:
which might indicate that this is not working. |
But indeed it is strange that only Talk then needs it, as Files works. |
Hm. @nickvergessen do you know what this means? That there is already the same push token? |
The device identifier (a hash of instance id, user id and auth token id) already is registered with a different user public key. I guess it can happen with dev instances and you didn't unsubscribe from the push server when the old account got removed. This only affects unlucky developer cases, as on a real instance you can never get the same combination of instance + user + auth token, because the auth token is auto increment. Only when the instance is reset it can happen. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I'm on talk 15.1.1 now and issue is still present. |
I have the same problem. |
I have exaaclty same issue, nextcloud files works like a charm, nextcloud talk does register to microG but doesn't receive any notification (huawei P40 with microG, nextcloud files & talk from GPlay) |
Me too, using F-Droid versions on an unrooted Samsung and a single, non-developer instance. Tried reinstalling multiple times in every combination I could think of, always "push messages disabled", and "no device found" . "Nextcloud Services" polling app works, I 'm using that in the meantime. (And whether you catch this bug or not: Thanks for your efforts!) |
I fixed this by switching from lighttpd (which isn't supported anyway) to nginx. |
I fixed it by uninstalling the F-Droid version and installing from Google Play instead. The F-Droid version of Talk works with MicroG -only-, it's not compatible with Google Play Services, as it turns out. |
Fdroid version is FOSS, thus it cannot have any receiving parts of push notifications (as those are closed source by Google). |
Issue still exists on NC.Talk 16.0 RedMi 11Pro 5G (All permission) |
Issue still present. Using latest Nextcloud-AIO. My Phone is a OnePlus 7 Pro with latest crDroid installed. When trying to enable notification, there is a message underneath the toggle stating "At your request, Android is blocking this category of notifications from appearing on your device". Have tried both F-Droid and GPlay version of Talk apps. Same issue. (v17.0.2) |
Oh... and btw. Latest Nikgapps Core installed. |
@tobiasKaminsky Unfortunately notifications are still not working for Nextcloud Talk 17.1.0 RC1, altough it works for Nextcloud app itself without issues. Did you find out why Talk needs to verify the signature while Nextcloud itself does not? |
Please help me, I have created my apk from the same source code without modifying anything and when I install and log in, the message appears: PUSH NOTIFICATION DISABLED .... Is there anything else to do? OBS: I use source code version apk 17.0.2 |
Please let me know if the issue is fixed when v18.0.0 is released. It will introduce fixes for notifications and account deletion. |
@mahibi I've updated to 18rc2, deleted one of three active accounts and added it again... notifications are still disabled. Anything special which has to be done after upgrade? |
same problem here with oneplus phone, stock firmware. |
I recently created a diagnosis screen and checks for permissions in #3558 Then go to settings (and check if any permissions are marked with red color). |
I also didn't get notifications with my installation (just until now). Below the information from the diagnosis screen. What's not in there:
=> So SafetyNet is probably the missing part in some of the cases here So a check + warning for missing SafetyNet could probably be a valid workaround here. Meta-InformationErzeugung des Systemberichts 24.04.2024 09:20:03 TelefonGerät Google Pixel 4a Android-Version 34 Google Play-Dienste Google Play-Dienste sind verfügbar AppApp-Name Nextcloud Talk App-Version v18.1.0 Build flavor gplay Batterie-Einstellungen Batterieoptimierung wird ignoriert, alles in Ordnung Benachrichtigungsberechtigungen Benachrichtigungen werden gewährt Anrufbenachrichtigungskanal aktiviert? true Nachrichtenbenachrichtigungskanal aktiviert? true Firebase-Push-Token Kein Firebase-Push-Token festgelegt. Bitte erstellen Sie einen Fehlerbericht. Neueste Firebase-Push-Token-Generation Unbekannt Neuester Firebase-Push-Token-Abruf Unbekannt Registrierte Benutzer redacted Aktuelles KontoServer redacted Benutzer redacted Benutzerstatus aktiviert? Ja Server-Benachrichtigungs-App installiert? Ja Aktuelle Push-Registrierung am Server Noch nicht am Server registriert Aktuelle Push-Registrierung beim Push-Proxy Noch nicht beim Push-Proxy registriert Serverversion 28.0.3 Serverversion von Talk 18.0.5 Signalisierungsmodus Intern |
Thanks to share this information @bene64. I'll have to read up on it a bit.. |
SaftetyNet depends on working signature spoofing. Thus, missing signature spoofing is generally the issue if apps complain about missing gplay. There are devices (like my Huawei Mate 40 Pro) on which you cannot enable signature spoofing. But, the main point is that signature spoofing is not required for push notifications. Push notifications are working for most of the apps and if you installed Talk long time ago, push notifications are also working properly because the device was already registered. E.g. I own two Mate 40 Pro. On one of them I uninstalled Talk and I'm not able to get push notifications working again. On the other device it is just working because device registration was done differently back at the time. @mahibi |
@mahibi I'm on Talk-Android 19.0.1 now and this issue still persists. The Nextcloud app itself is still able to register for push notifications on the same device (still without signature spoofing). Isn't it possible to use the same push registration like the Nextcloud app does? Alternatively, is there a way to register for push manually somehow? |
I had another look at this issue... Just as a reminder: push notifications for Nextcloud android are working with no issues (for other apps it's also no issue on my Huawei Mate 40 Pro). Only Nextcloud Talk does not work as expected. For Nextcloud android, the check for available of Gplay is done here: For Nextcloud Talk this check is done here: talk-android/app/src/gplay/java/com/nextcloud/talk/utils/ClosedInterfaceImpl.kt Lines 48 to 60 in c2683e0
The main difference seems to be how
Thus, I tried adding this code as acceptable and changed
to
Now push notifications are working again on my device!!! @tobiasKaminsky as said, I'm no developer. But maybe you can explain, what the difference is in definition of |
From what i see the check itself is not a problem. But i see that there is a difference when the check is actually triggered. On talk app it's triggered quite often, for files app it's triggered only rarely or not at all depending on the scenario. Instead the files app seem to rely on if a push token is actually saved in the settings. I fear just allowing to continue with For the long term we plan to extract the login screens and push stuff to a shared library so talk and files app use the same code base. It may have to wait for this which then should also fix it. |
Steps to reproduce
Expected behaviour
Notifications should be enabled and available.
Actual behaviour
Message appears (just for a couple of milliseconeds) that push notifications are disabled.
I didn't find any way to see this information afterwards (e.g. settings menu). Notifications for other apps (including nextcloud) work just fine.
See further details below (Additional information).
Device brand and model
Huawei Mate 40 Pro
Android version
11
Nextcloud Talk app version
15.0.1
Nextcloud server version
24.0.6
Talk version
14.0.5
Custom Signaling server configured
Yes (specify version in Additional Information)
Custom TURN server configured
Yes
Custom STUN server configured
Yes
Android logs
No response
Server log
No response
Additional information
Notifications were working before removing talk-android and reinstalling. Double checking the docs didn't help so far. https://github.com/nextcloud/talk-android/blob/master/docs/notifications.md
Battery optimizations are disabled for talk.
The text was updated successfully, but these errors were encountered: