Issue
push notifications do not work on web-browsers and mobile apps (android).
background: we want to use Nextcloud-Talk and unfortunately the function of push notifications is essential for a proper use of this feature.
information about the installation
nextcloud version: 15.0.2
operating system and version: Ubuntu 18.04
apache: 2.4.29
php version: 7.2.10
database: mysql
Is this the first time youâve seen this error? (Y/N): Y
steps to reproduce:
browser:
1.) sign in with two test account on two different machines.
2.) in the browser of one testaccount open the Nextcloud-Talk function.
3.) start a conversation with the other test account.
4.) no push notification on the other computer (second test account) is displayed.
5.) after a few seconds (after the refresh of the nextcloud page), the notification bar indicates that there are notifications.
in summary: Nextcloud-Talk in Browser works in principle.
but there is no push notification in case of new conversations or messages.
mobile application:
1.) sign in with two test account on two different mobiles (for login, the login process with username and password is used directly in the app.)
2.) immediately after login confirmation, the message âPush notifications disabledâ appears.
3.) the sending and receiving of messages works without any problems when every user on the devices is online and âinsideâ in the app.
4.) push notifications do not work
5.) as another test, the account was removed on both devices again and the login was done via an âapp tokenâ which was created on the nextcloud menu âSecurityâ.
Information about the mobile app
app version: 3.2.3 (from play store)
google play service version: 14.7.99
on every android device, the app (Nextcloud-Talk) was installed directly from the App Store (Google Play).
each device has native Google-Play-Services installed.
additional Information
the output of your Nextcloud log:
unfortunately there are no log entries in connection with ânotificationsâ or âpushâ (also in the debug setting)
The output of your config.php file:
$CONFIG = array (
âinstanceidâ => â############â,
âpasswordsaltâ => â############â,
âsecretâ => â############â,
âtrusted_domainsâ =>
array (
0 => â############â,
1 => â############â,
2 => â############â,
3 => â############â,
),
âdatadirectoryâ => â/srv/nextcloudâ,
âdbtypeâ => âmysqlâ,
âversionâ => â15.0.2.0â,
âdbnameâ => â############â,
âdbhostâ => âlocalhostâ,
âdbportâ => ââ,
âdbtableprefixâ => âoc_â,
âdbuserâ => â############â,
âdbpasswordâ => â############â,
âinstalledâ => true,
âmemcache.localâ => â\OC\Memcache\APCuâ,
âmail_domainâ => â############â,
âmail_from_addressâ => ânextcloudâ,
âmail_smtphostâ => â############â,
âmail_smtpportâ => â25â,
âmail_smtpdebugâ => true,
âmail_smtptimeoutâ => â30â,
âauth.bruteforce.protection.enabledâ => false,
âdefault_languageâ => âdeâ,
âmaintenanceâ => false,
âthemeâ => ââ,
âloglevelâ => â0â,
âoverwriteprotocolâ => âhttpsâ,
âoverwritehostâ => â############â,
âoverwrite.cli.urlâ => â############â,
âupdater.release.channelâ => âstableâ,
software:
notifications and nextcloud-talk plugin (app) is installed on the nextcloud server.
plugin-versions:
Notifications 2.3.0
Talk 5.0.2
other:
the compatibility check on the endpoint (/ocs/v2.php/cloud/capabilities) show up the âpushâ entry.
The output of your apache log:
unfortunately there are no log entries in connection with notifications or push (for example: https://push-notifications.nextcloud.com/)
database:
the table âoc_notifications_pushtokensâ is emtyâŚ?!
i suspect that indicates that, no client registers with the push notification service?
no log entry on the server indicates that the nextcloud server contacts the push notification service (https://push-notifications.nextcloud.com/).
but on this point no other idea how to continue debuggingâŚ
thankful for any help.