Nextcloud Talk Push notification not working for IOS/Android

Summary

I have recently setup Nextcloud Talk with following:

Versions

Talk : 20.1.3
Coturn: 4.6.1
Signaling server: nextcloud-spreed-signaling version 97452ae8d57fddaca8d9231ab4f11546bfa4c773/go1.22.2
Janus: Janus version: 1102 (1.1.2)
nas: latest docker image
notify_push: 1.0.0

Seems all working fine except two issues:

1- Not receiving any notifications [ calls, message ] on IOS & Android
2- Android phone calls does not connects, shows waiting for other user to join or connects 1 way and other user shows mute while the other user can listen

But main issue is notifications, how does it work? I read nextcloud uses Notifications app and connects to push-notifications.nextcloud.com and forward the notifications on ios/Android. Does this work for Self hosted Nextcloud instance?

I have tested Notifications to user by occ notification:test-push , I receive the notification immigiately in Nextcloud Website, but not on the ios/android app.

All configurations seems fine from Administration page, signaling server connects successfully, also TURN and STUN status is ok.

Log entries

Nextcloud

I Do not see any error logs while testing the notification, the output for occ notification:test-push does not prints any output but the Notifications for Nextcloud website works.

Web server / Reverse Proxy

The output of your nginx vhost for push notifications

location ^~ /push/ {                                                                                                                                                                                                          
    proxy_pass http://127.0.0.1:7867/;                                                                                                                                                                                        
    proxy_http_version 1.1;                                                                                                                                                                                                   
    proxy_set_header Upgrade $http_upgrade;                                                                                                                                                                                   
    proxy_set_header Connection "Upgrade";                                                                                                                                                                                    
    proxy_set_header Host $host;                                                                                                                                                                                              
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;                                                                                                                                                              
} 

Configuration

Nextcloud

Followed this guide : GitHub - nextcloud/notify_push: Update notifications for nextcloud clients

Notify Push

[Unit]                                                                                                                                                                                                                        
Description = Push daemon for Nextcloud clients                                                                                                                                                                               
Documentation=https://github.com/nextcloud/notify_push                                                                                                                                                                        
                                                                                                                                                                                                                              
[Service]                                                                                                                                                                                                                     
Environment = PORT=7867                                                                                                                                                                                      
Environment = NEXTCLOUD_URL=https://domain.url                                                                                                                                                                        
ExecStart = /var/www/nextcloud/apps/notify_push/bin/x86_64/notify_push /var/www/nextcloud/config/config.php                                                                                                                   
Type=notify                                                                                                                                                                                                                   
User=www-data                                                                                                                                                                                                                 
Restart=always                                                                                                                                                                                                                
RestartSec=60                                                                                                                                                                                                                 
                                                                                                                                                                                                                              
[Install]                                                                                                                                                                                                                     
WantedBy = multi-user.target

There should be output there, did you try it with --talk?

1 Like

Yes I did tried with --talk

I received the notification on nextcloud webapp as below

But I do not receive any notification when I push the test notification to a user who is logged into Mobile app

on Windows client: sometime I receive the notification, sometime NO & sometime with delay

But what is the output of the occ command? There should be an ouput, even if it’s just “No device found for user”?!

Yes you are right, this is what weird, It suppose to show me the output like
Trying to push to 2 devices
or Push notification sent successfully Or No devices found for user

But in my case I get no response in return from that command, though on webapp I receive the notifications

sudo -u www-data php /var/www/nextcloud/occ notification:test-push --talk xxxxxxx-E92C-48B5-xxxx-D99F14F74E1B                                                                           
nextcloud@app01:/var/www/nextcloud#   

Screenshot:

Outputs:

Notify push Metrics

nextcloud@app01:/var/www/nextcloud# sudo -u www-data php /var/www/nextcloud/occ notify_push:metrics                                                                                                                          
Active connection count: 2                                                                                                                                                                                                    
Active user count: 2                                                                                                                                                                                                          
Total connection count: 12                                                                                                                                                                                                    
Total database query count: 2                                                                                                                                                                                                 
Events received: 60                                                                                                                                                                                                           
Messages sent: 28

Notify push self-test

sudo -u www-data php /var/www/nextcloud/occ notify_push:self-test                                                                                                                        
✓ redis is configured                                                                                                                                                                                                         
✓ push server is receiving redis messages                                                                                                                                                                                     
✓ push server can load mount info from database                                                                                                                                                                               
✓ push server can connect to the Nextcloud server                                                                                                                                                                             
✓ push server is a trusted proxy                                                                                                                                                                                              
✓ push server is running the same version as the app

Update

I test the notification using test_client

nextcloud@app01:/var/www/nextcloud# ./test_client https://domain.url user 'password'                                                                                                              
[2025-02-12 10:19:10.007624 +03:00] INFO [test_client] test_client/src/main.rs:39: Found push server at wss://domain.url/push/ws                                                                                      
[2025-02-12 10:19:11.049465 +03:00] INFO [test_client] test_client/src/main.rs:73: Authenticated                                                                                                                              
[2025-02-12 10:20:11.478572 +03:00] INFO [test_client] test_client/src/main.rs:71: Received notification notification                                                                                                         
[2025-02-12 10:20:29.197772 +03:00] INFO [test_client] test_client/src/main.rs:71: Received notification notification                                                                                                         
[2025-02-12 10:21:05.951710 +03:00] INFO [test_client] test_client/src/main.rs:71: Received notification notification                                                                                                         
                                                                                                                     

but notification was not recieved.

Please note that notify_push only has an effect on web, it’s unrelated to mobile devices.

Can you try to remove the account from a mobile device, add it again und then retest the occ command?

I will test removing the account from device and try again,

however if notify_push is not related to mobile devices, how can I setup the Notifications for Talk Mobile app ?

what I need to configure for Mobile app notifications for Talk. Any guide to follow ?

There’s nothing to do here, it should work out of the box.

so is this applicable for the self hosted Nextcloud webapp with subscription

1- will it use push-notifications.nextcloud.com ?
2- it will work out of the box?

Yes to both. It only differs, if you have branded clients.

So a subscription from the Nextcloud GmbH? In that case you should reach to support.

Just opened a ticket with Nextcloud support.

Thanks @SysKeeper for you time and support.

Finally It worked.

Solution: The parameter in config.php file has_internet_connection has to be enable and set to true.

When has_internet_connection is set to false, the notifications app will not attempt to send push notifications to any devices.

1 Like

Glad it works now for you :slight_smile:
Btw, we improved the output for that scenario in an upcoming version, so the occ command will let you know what happens.

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.