IOS Nextcloud Talk does not get notifications of any kind.

Currently I am running Nextcloud 32.0.2 and IOS Iphone Nextcloud Talk version 22.0.6. Notifications are not working on the Nextcloud Talk app for IOS, I have tried on Iphones 15 pro, 16 pro,17 , and two different versions of Ipads, none work, but tried on a Samsung and it does work there. I made sure that on the Iphones the phones were not in power saving mode, that the notifications were enable, no focus or do not disturb enabled and inside the app that the conversations had notifications for all messages and calls I also set it as default on Nextcloud, but nothing is working and is definitely just the IOS app I don’t get notifications of calls or messages in fact none. I already tried to sign in and out, remove all the devices and sessions and sign in again. Any step I might be missing ? I do really need this to work for a small personal business

Hey, please Check talk-ios/docs/notifications.md at main · nextcloud/talk-ios · GitHub

Hi, yes I did followed that guide, when I push a notification using the command in the guide it says that my account does not detect any talk application which I am 100% logged in, so it does not send the notification.

Talk logs in directly using the account’s key; using a dedicated password does not receive notifications. Then, run the following command in the SSH terminal: sudo -u www-data php /var/www/yourinstance/occ notification:test-push --talk youruser.

Can you post the full output of the test command please?

root@dockge:/mnt# docker exec -u www-data nextcloud php occ notification:test-push Razer

Testing Talk clients:

Language is set to en

Private user key size: 1704

Public user key size: 451

Found 1 devices registered for push notifications

Identified 1 Talk devices and 0 others.

Trying to push to 1 devices

Device token: 381

Device token is valid

Device public key size: 451

Data to encrypt is: {“nid”:280,“app”:“admin_notification_talk”,“subject”:“Testing push notifications”,“type”:“admin_notifications”,“id”:“693b68cb”}

Signed encrypted push subject

Deleting device because it is unknown by the push server: YELRw73cDzBjx+DsLNh/BQEOqvbcLveCmbsO7d0gfMB4pL+fE6nBGmhZN8PNzIeeZ+MvJIGr3a1R2QC86GaSzg==

Push notification sent, but 1 failed

Testing other clients: Files, Notes, …

Language is set to en

Private user key size: 1704

Public user key size: 451

Found 1 devices registered for push notifications

Identified 1 Talk devices and 0 others.

No devices left after filtering

root@dockge:/mnt# docker exec -u www-data nextcloud php occ notification:test-push Razer

Testing Talk clients:

No devices found for user

Testing other clients: Files, Notes, …

No devices found for user

and I made sure that I only had one session active which is the Nextcloud Talk, I know it says it was deleted but I am still logged in to my Nextcloud Talk app and now it just says it did not found any device. If I log out and in again the same result first it detects the device and then it deletes it and no device found result. If I use the same command for a different user it does work without any problem. The user that is having the issue is the first user I created 3-4 years ago I installed Nextcloud, maybe something changed in an update and that user is too old?

Can you try to run occ user:keys:verify Razer and see what it outputs?

Hello, really sorry for the delay.

User public key size: 451
User private key size: 1704
User derived public key size: 451

Stored public key:
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAn5OYQCnAWA36OqVCnLeX
O39frvW8D4qG16X5sv/E+oui1mli0prjb4utZMTMpdj8PAKMOKUuvn+bITur4ft7
ZJHw0nUH+jTLuHpmo85OTvNVT5dTAinU4en4cpla2MDoWAMGCtG84Puyw+wKwAVh
0XFLoPOtwSEUzB5xnJdEZ/5+orFZxxeL3gqIZfRgH7U0jw8dR2rrkEAAgPKrOKYK
eapUH18/HDiBiFCx6CiNdd56WFhonraw6Ei4eztklrRUDeYMYlpBG7L68XuXbqRW
WM6c8YJaktqgONjhPioX7AbzQbPDdrcVOU6NE/isxBHkKlrsV4vU66LEC0GMD82p
nwIDAQAB
-----END PUBLIC KEY-----

Derived public key:
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArCu7JPlj9KxvaqkToivJ
xE+roELq/VQ9HUETyaXLsmkC11o2sdLoW3dkQ/kF8kCKgTAsc3wVo6xZpnclHXae
LY26NML3NU1VQ42a7cVIqjlcnDkPd0Wpf7PFveljv4BMUc2wYJXtAlnnwF8qf2+P
QNXk8KgxeNQ42MlRr24rFN4BfvOIvZfsoDr/GtE2mMespi1YHLP2vAZ1r+oko4WK
f/A7nNuBhQksrxYhejIBME/mUcK9MKOVTs7eJFQTBzpAqS45fH5jo6HGMTHBEwPj
zhCMpAdxtOnw/YWksppJv07lIPRbySu1K3eYchbXuwd3+OW56L9sTbm2d/WR5in2
twIDAQAB
-----END PUBLIC KEY-----

Stored public key does not match stored private key

That’s your issue, so notifications will never work for that person. When you update to the latest version, you should have an “–update” option for that command, which will make sure the correct key is stored. After that, re-login to the devices and re-test.

I was able to fix the key problem,
root@dockge:/mnt/apps/nextcloud/config# docker exec -u www-data nextcloud php occ user:keys:verify Razer
User public key size: 451
User private key size: 1704
User derived public key size: 451

Stored public key:
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArCu7JPlj9KxvaqkToivJ
xE+roELq/VQ9HUETyaXLsmkC11o2sdLoW3dkQ/kF8kCKgTAsc3wVo6xZpnclHXae
LY26NML3NU1VQ42a7cVIqjlcnDkPd0Wpf7PFveljv4BMUc2wYJXtAlnnwF8qf2+P
QNXk8KgxeNQ42MlRr24rFN4BfvOIvZfsoDr/GtE2mMespi1YHLP2vAZ1r+oko4WK
f/A7nNuBhQksrxYhejIBME/mUcK9MKOVTs7eJFQTBzpAqS45fH5jo6HGMTHBEwPj
zhCMpAdxtOnw/YWksppJv07lIPRbySu1K3eYchbXuwd3+OW56L9sTbm2d/WR5in2
twIDAQAB
-----END PUBLIC KEY-----

Derived public key:
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArCu7JPlj9KxvaqkToivJ
xE+roELq/VQ9HUETyaXLsmkC11o2sdLoW3dkQ/kF8kCKgTAsc3wVo6xZpnclHXae
LY26NML3NU1VQ42a7cVIqjlcnDkPd0Wpf7PFveljv4BMUc2wYJXtAlnnwF8qf2+P
QNXk8KgxeNQ42MlRr24rFN4BfvOIvZfsoDr/GtE2mMespi1YHLP2vAZ1r+oko4WK
f/A7nNuBhQksrxYhejIBME/mUcK9MKOVTs7eJFQTBzpAqS45fH5jo6HGMTHBEwPj
zhCMpAdxtOnw/YWksppJv07lIPRbySu1K3eYchbXuwd3+OW56L9sTbm2d/WR5in2
twIDAQAB
-----END PUBLIC KEY-----

Stored public key matches stored private key

but still I have the same issue.

root@dockge:/mnt/apps/nextcloud/config# docker exec -u www-data nextcloud php occ notification:test-push --talk Razer

Testing Talk clients:
Language is set to en
Private user key size: 1704
Public user key size: 451

Found 1 devices registered for push notifications
Identified 1 Talk devices and 0 others.
Trying to push to 1 devices

Device token: 402
Device token is valid
Device public key size: 451
Data to encrypt is: {“nid”:444,“app”:“admin_notification_talk”,“subject”:“Testing push notifications”,“type”:“admin_notifications”,“id”:“694047ea”}
Signed encrypted push subject

Deleting device because it is unknown by the push server: 04u6JI6oQuWHJSWr5ur9XyzVk6H2BCMHqF8V+PmekqtCqyGvC+/qiJJoqCZ9zPLFz4l7+aEW06qZvUmWsspwAw==
Push notification sent, but 1 failed

I did log out and then I log in again

Did you use the provided command or how did you solve it?

docker exec -u www-data nextcloud php occ user:keys:verify --update Razer

1 Like