Hi
Trying Mattermost 4.2 server on a Centos 7, everything OK but no push notifications.
Followed the docs about enable push notifications on our mobiles but when we try to send notifications (via the @all mention) they only goes via e-mail and there’s nothing on the logs about the Push notifications.
Pleae let me know how we can try to debug that.
Thanks
Yes, already checked all, we have a channel with 6 persons and when we mention @all, nothing comes out in the logs (at DEBUG level) about push notifications (email notifications are disabled).
Please let me know, we are a cloud provider and this is an evaluation for a customer company that is interested in buy the EE, obviusly they want to test the app for a few weeks.
I know there is a bug in 4.3 about saving the settings for push notifications, can you try and set them manually or check your config.json file to see if its actually set?
Have you tried only mentioning one person? does that person get the push notification?
What do you see if you go to the user’s Account Settings -> Security -> View and logout active sessions? does it have a Native app listed?
You may want to check if the devices are actually registering for your users, the above step should tell you but you can check the database under the Sessions table and see if you have the DeviceId column set
I set EmailSettings.SendPushNotifications manually, but I saw cannot parse error. I think EmailSettings.SendPushNotifications as boolean, so I cannnot set string. I use mattermost 4.3.1.
“SendPushNotifications”: “tpns”
# cat config.json | grep Push
"SendPushNotifications": "tpns",
"PushNotificationServer": "",
"PushNotificationContents": "generic",
# systemctl start mattermost
# systemctl status mattermost
● mattermost.service - Mattermost
Loaded: loaded (/etc/systemd/system/mattermost.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2017-11-03 13:28:07 JST; 3s ago
Process: 2726 ExecStart=/opt/mattermost/bin/platform (code=exited, status=1/FAILURE)
Main PID: 2726 (code=exited, status=1/FAILURE)
Nov 03 13:28:07 172-020-000-165 systemd[1]: Started Mattermost.
Nov 03 13:28:07 172-020-000-165 systemd[1]: Starting Mattermost...
Nov 03 13:28:07 172-020-000-165 platform[2726]: Error decoding config file=config.json, err=1 error(s) decoding:
Nov 03 13:28:07 172-020-000-165 platform[2726]: * cannot parse 'EmailSettings.SendPushNotifications' as bool: strconv.ParseBool: parsi... syntax
Nov 03 13:28:07 172-020-000-165 systemd[1]: mattermost.service: main process exited, code=exited, status=1/FAILURE
Nov 03 13:28:07 172-020-000-165 systemd[1]: Unit mattermost.service entered failed state.
Nov 03 13:28:07 172-020-000-165 systemd[1]: mattermost.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
“SendPushNotifications”: “mtpns”
# cat config.json | grep Push
"SendPushNotifications": "mtpns",
"PushNotificationServer": "",
"PushNotificationContents": "generic",
# systemctl start mattermost
# systemctl status mattermost
● mattermost.service - Mattermost
Loaded: loaded (/etc/systemd/system/mattermost.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2017-11-03 12:58:26 JST; 1s ago
Process: 1853 ExecStart=/opt/mattermost/bin/platform (code=exited, status=1/FAILURE)
Main PID: 1853 (code=exited, status=1/FAILURE)
Nov 03 12:58:26 172-020-000-165 systemd[1]: Started Mattermost.
Nov 03 12:58:26 172-020-000-165 systemd[1]: Starting Mattermost...
Nov 03 12:58:26 172-020-000-165 platform[1853]: Error decoding config file=config.json, err=1 error(s) decoding:
Nov 03 12:58:26 172-020-000-165 platform[1853]: * cannot parse 'EmailSettings.SendPushNotifications' as bool: strconv.ParseBool: parsi... syntax
Nov 03 12:58:26 172-020-000-165 systemd[1]: mattermost.service: main process exited, code=exited, status=1/FAILURE
Nov 03 12:58:26 172-020-000-165 systemd[1]: Unit mattermost.service entered failed state.
Nov 03 12:58:26 172-020-000-165 systemd[1]: mattermost.service failed.
Hint: Some lines were ellipsized, use -l to show in full.