Troubleshooting push notifications#
If you did not receive a push notification when testing push notifications, use the following procedure to troubleshoot:
In System Console > Environment > Logging > File Log Level, select DEBUG in order to watch for push notifications in the server log.
Delete your mobile application, and reinstall it.
Log in with “Account A” and confirm you want to receive push notifications when prompted by the mobile app.
Go to Profile > Security > View and Logout of Active Sessions to confirm that there is a session for the native mobile app matching your login time.
Repeat the procedure for testing push notifications.
If no push notification displays, go to System Console > Server Logs, then select Reload. Look at the bottom of the logs for a message similar to:
[2016/04/21 03:16:44 UTC] [DEBG] Sending push notification to 608xyz0... wi msg of '@accountb: Hello'
If the log message displays, it means a message was sent to the HPNS server and was not received by your mobile app. Please create a support ticket with the subject “HPNS issue” for help from Mattermost’s Support team.
If the log message does not display, it means no mobile push notification was sent to “Account A”. Please repeat the process starting at step 2 and double-check each step.
Important
To conserve disk space, once your push notification issue is resolved, go to System Console > Environment > Logging > File Log Level, then select ERROR to switch your logging detail level from DEBUG to Errors Only.
If push notifications are not being delivered on the mobile device, confirm that you’re logged in to the Native mobile app session through Profile > Security > View and Log Out of Active Sessions. Otherwise, the DeviceId won’t get registered in the Sessions table and notifications won’t be delivered.