mattermost / mattermost-mobile

Next generation iOS and Android apps for Mattermost in React Native
https://about.mattermost.com/
Apache License 2.0
2.2k stars 1.33k forks source link

Excessive loading time via Android App on self-hosted server #6062

Open simonheb opened 2 years ago

simonheb commented 2 years ago

Summary

On two different Android phones I'm experiencing excessive loading times (>10 seconds per channel). This is independent from network and occurs while reading the same content in the browser works without delay. The server is self-hosted.

Environment Information

Steps to reproduce

Open the app, tap on any channel with new posts, observe how long it takes until the new posts appear. It's especially obvious for images.

Expected behavior

Expected behavior is that this should be roughly as fast as in the browser.

Observed behavior (that appears unintentional)

It takes around 5-30 seconds for new content to appear. Images stay blurry until fully loaded after around 1 minute.

amyblais commented 2 years ago

@enahum Do you have any ideas which of the changes in v1.50 may have caused slowness? https://github.com/mattermost/mattermost-mobile/milestone/52?closed=1

enahum commented 2 years ago

This does not reproduce in local environment nor using our community servers. Also based on the milestone there is nothing that stands out as a potential cause.

amyblais commented 2 years ago

@simonheb Would you be open to upgrading to the latest v5.37.9 ESR version to see if it helps? We've added some server performance fixes throughout the ESR dot release versions https://docs.mattermost.com/install/self-managed-changelog.html#release-v5-37-extended-support-release.

simonheb commented 2 years ago

Unfortunately I have no way of changing the server. I'm happy to test anything that can be done from the client side

larkox commented 1 year ago

@simonheb Does this still reproduces with the latest version of the beta app (V2)?

karliwalti commented 1 year ago

Experiencing the same issue with Nokia X20 Android 13 Android App v 1.55.1 (Build 300000423) Server version: 7.1.2

It becomes very obvious when push-notifications are enabled. After pressing the link from the notification, it takes the reported timescale to display the message in the app.

larkox commented 1 year ago

@karliwalti Would it be possible to test using the latest beta (V2)?

karliwalti commented 1 year ago

@larkox currently working on getting a more recent version of server. Will then also experiment with app version.

karliwalti commented 1 year ago

Running Server version 7.5.1 now. Only minor improvements with respect to speed of displaying messages.

tried to install the beta app version through android play store. version 2.0.0 Build 6000452. Unfortunately it doesn´t want to connect to self hosted server similar to #6643

larkox commented 1 year ago

From the readme:

I keep getting a message "Cannot connect to the server. Please check your server URL and internet connection."

This sometimes appears when there is an issue with the SSL certitificate configuration.

To check that your SSL certificate is set up correctly, test the SSL certificate by visiting a site such as https://www.ssllabs.com/ssltest/index.html. 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](https://docs.mattermost.com/install/config-ssl-http2-nginx.html) instead.

Can you check with ssllabs if everything is alright on your instance? I have seen similar problems due to ipv6 misconfigurations (v2 uses ipv6 by default, while v1 used ipv4).