docs/main/deployment-guide/mobile/mobile-troubleshooting.mdx
First, confirm that your server URL has no typos and that it includes http:// or https:// according to the server deployment configuration.
If the server URL is correct, there could be an issue with the SSL certificate configuration.
To check your SSL certificate set up, test it by visiting a site such as SSL Labs. If there’s an error about the missing chain or certificate path, there is likely an intermediate certificate missing that needs to be included.
Please note that the apps cannot connect to servers with self-signed certificates, consider using Let's Encrypt instead.
In line with Microsoft guidance we recommend configuring intranet forms-based authentication for devices that do not support WIA.
Use /mobile-logs during mobile troubleshooting to let users attach Mattermost mobile app logs to messages. Running /mobile-logs on shows the Attach app logs option in the attachment menu of the message composer, so users can include device-side logs when messaging an administrator or support engineer. Users can also turn this option on or off from the Report a problem screen in the mobile app. The command responds with an ephemeral message visible only to the user who ran it.
This command requires Mattermost mobile app v2.38 or later.
/mobile-logs on./mobile-logs off./mobile-logs status./mobile-logs on @username, /mobile-logs off @username, or /mobile-logs status @username.Non-admin users can only manage their own preference. Attempts to target another account return a neutral Unable to change mobile log settings for that user message to avoid username enumeration. Preference changes made through this command are recorded in the audit log.
If your app is working properly, you should see a grey “Connecting…” bar that clears or says “Connected” after the app reconnects.
If you are seeing this message all the time, and your internet connection seems fine, ask your server administrator if the server uses NGINX or another webserver as a reverse proxy. If so, they should check that it is configured correctly for supporting the websocket connection for APIv4 endpoints.
You can set up an internal server to proxy the connection out of their network to the Mattermost Hosted Push Notification Service (HPNS) by following the steps below:
https://push.mattermost.com.Depending on how your proxy is configured you may need to add a port number and create a URL like https://push.internalproxy.com:8000 mapped to https://push.mattermost.com
bundleReleaseJsAndAssetsAs a workaround, you can bundle the js manually first with
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
and then ignore the gradle task with
./gradlew assembleRelease -x bundleReleaseJsAndAssets
This can happen if the server running Mattermost has its mime types not set up correctly. A server running Linux has this file located in /etc/mime.types. This might vary depending on your specific OS and distribution.
Some distributions also ship without mailcap which can result in missing or incorrectly configured mime types.
This can occur if the server running Mattermost is configured with an incorrect character set. To resolve this issue, in the config.json file under SqlSettings, ensure that the DataSource key is configured correctly, then restart the Mattermost server.
For example:
"SqlSettings": {
"DataSource": "<user:pass>@<servername>/mattermost?charset=utf8mb4,utf8",
[...]
}
See our Configuration Settings documentation for details on configuring the connection string to the master database.
Make sure to configure push notifications for your pre-built mobile apps, or for your custom built mobile apps.
Then use the following instructions to confirm push notifications are working properly.
Go to the notification settings menu in the mobile app.
Check that the mobile push notifications are set to send.
If you did not receive a push notification when testing push notifications, use the following procedure to troubleshoot:
[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.
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 <code>DeviceId</code> won't get registered in the <code>Sessions</code> table and notifications won't be delivered.