# Can not log in Android App

**URL:** <https://forum.mattermost.com/t/can-not-log-in-android-app/16042>\
**Category:** Troubleshooting\
**Created:** [May 31, 2023, 9:43am UTC](https://forum.mattermost.com/t/can-not-log-in-android-app/16042 "2023-05-31T09:43:45Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonchenko](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/leonchenko/32/6881_2.png) [@leonchenko](https://forum.mattermost.com/u/leonchenko)\
**Post date:** [May 31, 2023, 9:43am UTC](https://forum.mattermost.com/t/can-not-log-in-android-app/16042/1 "2023-05-31T09:43:45Z")

</div>

**Summary**  
Can not log in (the first time) in the android App (pixel 7). After login and password the page “Enter MFA Token” is not appears.

**Steps to reproduce**  
Log in with the company server,

- 1st screen - company server name - ok
- 2nd screen - email and password - ok
- 3rd screen supposes to be “Enter MFA Token” is not appear. There is an empty screen with “x” in the top-left corner to close the app.

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [May 31, 2023, 4:55pm UTC](https://forum.mattermost.com/t/can-not-log-in-android-app/16042/2 "2023-05-31T16:55:45Z")

</div>

What Mattermost mobile app version are you on?  
What Mattermost server version are you on?  
Does the same issue happen on webapp? Do other users see the issue on other devices?

---

<div class="post-metadata">

**Author:** ![leonchenko](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/leonchenko/32/6881_2.png) [@leonchenko](https://forum.mattermost.com/u/leonchenko)\
**Post date:** [June 15, 2023, 9:04am UTC](https://forum.mattermost.com/t/can-not-log-in-android-app/16042/3 "2023-06-15T09:04:02Z")

</div>

App Version: 2.4.0 (Build 6000471)

No, the same issue is not happening on web app

Don’t know server version, and didn’t hear about same issue on another user devices

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [June 15, 2023, 1:15pm UTC](https://forum.mattermost.com/t/can-not-log-in-android-app/16042/4 "2023-06-15T13:15:34Z")

</div>

@lindy65 Are you able to reproduce this on Android?

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [June 16, 2023, 2:45pm UTC](https://forum.mattermost.com/t/can-not-log-in-android-app/16042/5 "2023-06-16T14:45:04Z")

</div>

Hi @amy.blais - no, I am not able to reproduce on Android build 475, mysql.test v8.0-rc1.

Does upgrading to the latest build solve your issue @leonchenko ?

---

<div class="post-metadata">

**Author:** ![TerryWilson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/terrywilson/32/6954_2.png) [@TerryWilson](https://forum.mattermost.com/u/TerryWilson)\
**Post date:** [June 19, 2023, 8:29am UTC](https://forum.mattermost.com/t/can-not-log-in-android-app/16042/6 "2023-06-19T08:29:33Z")

</div>

I’m having the same problem with Motorola Edge 20 Pro.  
Mattermost App Version:2.5.0 (Build 6000475)

---

<div class="post-metadata">

**Author:** ![leonchenko](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/leonchenko/32/6881_2.png) [@leonchenko](https://forum.mattermost.com/u/leonchenko)\
**Post date:** [June 19, 2023, 12:47pm UTC](https://forum.mattermost.com/t/can-not-log-in-android-app/16042/7 "2023-06-19T12:47:59Z")

</div>

No, the problem is not solved. I just reinstall the Mattermost App on my Pixel 7 phone

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [June 19, 2023, 12:57pm UTC](https://forum.mattermost.com/t/can-not-log-in-android-app/16042/8 "2023-06-19T12:57:55Z")

</div>

Opened [[MM-53236] - Mattermost](https://mattermost.atlassian.net/browse/MM-53236) for tracking.

---

<div class="post-metadata">

**Author:** ![elias](https://avatars.discourse-cdn.com/v4/letter/e/41988e/32.png) [@elias](https://forum.mattermost.com/u/elias)\
**Post date:** [June 19, 2023, 3:03pm UTC](https://forum.mattermost.com/t/can-not-log-in-android-app/16042/9 "2023-06-19T15:03:48Z")

</div>

I just tried this on our community server and a local test server that I have with a Pixel 4 and a Pixel 6 as well as some simulators on Android 11, 12 & 13 and was unable to reproduce.

I wonder if you have a setting in your phone that prevents animations or some sort of accessibility setting that may be causing the issue?

If you tap on the “X” that appears at the top left corner of the screen as you mentioned, what happens? is it possible for you to share a screen recording?

---

<div class="post-metadata">

**Author:** ![leonchenko](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/leonchenko/32/6881_2.png) [@leonchenko](https://forum.mattermost.com/u/leonchenko)\
**Post date:** [June 20, 2023, 7:41am UTC](https://forum.mattermost.com/t/can-not-log-in-android-app/16042/10 "2023-06-20T07:41:22Z")

</div>

> I just tried this on our community server and a local test server that I have with a Pixel 4 and a Pixel 6 as well as some simulators on Android 11, 12 & 13 and was unable to reproduce.

I had Pixel 6A before - it was working there.  
It doesn’t work on Pixel 7

> I wonder if you have a setting in your phone that prevents animations or some sort of accessibility setting that may be causing the issue?

No special adjustments

> If you tap on the “X” that appears at the top left corner of the screen as you mentioned, what happens? is it possible for you to share a screen recording?

There is no X button only a back button that leads to the preview screen.

---

<div class="post-metadata">

**Author:** ![b\_cc](https://avatars.discourse-cdn.com/v4/letter/b/c5a1d2/32.png) [@b\_cc](https://forum.mattermost.com/u/b_cc)\
**Post date:** [June 20, 2023, 8:41am UTC](https://forum.mattermost.com/t/can-not-log-in-android-app/16042/11 "2023-06-20T08:41:22Z")

</div>

Hi!  
I have a similar problem.  
1st screen - company server name - ok  
2nd screen - log in via Keycloak - ok  
3rd screen - keycloak announces me a successful log in and the redirection seems to work  
4rd screen - re-display the first screen - company server name.

I encounter the same problem in these two situations:  
Server Mattermost Version: 7.10.0

1. mobile phone: xiaomi  
OS: lineage version 19.1 (~ android 12)  
application: mattermost-beta 2.4.0 and mattermost 2.5.0

2. VM: android x86 (version 9.0)  
application: mattermost 2.4.0

---

<div class="post-metadata">

**Author:** ![elias](https://avatars.discourse-cdn.com/v4/letter/e/41988e/32.png) [@elias](https://forum.mattermost.com/u/elias)\
**Post date:** [June 20, 2023, 7:36pm UTC](https://forum.mattermost.com/t/can-not-log-in-android-app/16042/12 "2023-06-20T19:36:35Z")

</div>

> [@leonchenko](#):
>
> I had Pixel 6A before - it was working there.  
> It doesn’t work on Pixel 7

Tatiana, what is the version of Android that you are running on your Pixel 7?

---

<div class="post-metadata">

**Author:** ![elias](https://avatars.discourse-cdn.com/v4/letter/e/41988e/32.png) [@elias](https://forum.mattermost.com/u/elias)\
**Post date:** [June 20, 2023, 7:37pm UTC](https://forum.mattermost.com/t/can-not-log-in-android-app/16042/13 "2023-06-20T19:37:44Z")

</div>

Do you see any errors on the server logs? does a browser open between steps 3 & 4 ?

---

<div class="post-metadata">

**Author:** ![b\_cc](https://avatars.discourse-cdn.com/v4/letter/b/c5a1d2/32.png) [@b\_cc](https://forum.mattermost.com/u/b_cc)\
**Post date:** [June 21, 2023, 9:15am UTC](https://forum.mattermost.com/t/can-not-log-in-android-app/16042/14 "2023-06-21T09:15:29Z")

</div>

> Do you see any errors on the server logs?

yes  
[error] connect() failed (111: Connection refused) while connecting to upstream, client: [IP\_server\_Mattermost], server: [URL\_Keycloak], request: “GET /realms/[realm\_name]/.well-known/openid-configuration HTTP/1.1”, upstream: “http://[::1]:8080/realms/[realm\_name]/.well-known/openid-configuration”, host: “[URL\_Keycloak]”

As far as I understand it is a proxy problem. The strange thing is that the Mattermost client desktop and the Mattermost browser do work properly.

> does a browser open between steps 3 & 4 ?

yes, and announces me:  
“Authentication complete  
Redirecting you back to the app  
If you are not redirected automatically, please click the link”  
And then, re-display the first screen - company server name

thanks for the tips and help

---

<div class="post-metadata">

**Author:** ![au-mah](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@au-mah](https://forum.mattermost.com/u/au-mah)\
**Post date:** [June 22, 2023, 2:47pm UTC](https://forum.mattermost.com/t/can-not-log-in-android-app/16042/15 "2023-06-22T14:47:40Z")

</div>

I had the same problem with a new Google Pixel 6a… app version 2.5.0. Installed the Mattermost Beta v 2.5.0 app and that allows me to log in successfully.

---

<div class="post-metadata">

**Author:** ![par](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@par](https://forum.mattermost.com/u/par)\
**Post date:** [July 12, 2023, 5:02am UTC](https://forum.mattermost.com/t/can-not-log-in-android-app/16042/16 "2023-07-12T05:02:49Z")

</div>

Have the same problem with android 13  
appversion is 2.5.1 build 6000476  
serverversion is 7.10.3  
Android device is v13

**Steps to reproduce**  
Log in with the company server,

- 1st screen - company server name - ok
- 2nd screen - email and password - ok
- 3rd screen “Enter MFA Token” , keyboard just displays in milliseconds. Impossible to enter code  
Have screen recording of issue, but upload does not accepting mp4 files.

---

<div class="post-metadata">

**Author:** ![agriesser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/agriesser/32/5644_2.png) [@agriesser](https://forum.mattermost.com/u/agriesser)\
**Post date:** [July 20, 2023, 3:30pm UTC](https://forum.mattermost.com/t/can-not-log-in-android-app/16042/17 "2023-07-20T15:30:27Z")

</div>

Are you all using the Android credential autocomplete to login to the server? Can you try to manually type in the username and password for the server connection instead of filling them in individually, please?

---

<div class="post-metadata">

**Author:** ![Shesoff](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/shesoff/32/7091_2.png) [@Shesoff](https://forum.mattermost.com/u/Shesoff)\
**Post date:** [August 1, 2023, 6:09pm UTC](https://forum.mattermost.com/t/can-not-log-in-android-app/16042/18 "2023-08-01T18:09:13Z")

</div>

I confirm. On ma two devices (OnePlus 10 Pro & Xiaomi Tab) has same trouble if I use Android credential autocomplete. If filled in manually work fine. Thanks for this workaround.
