Stuck while trying to login using the Android app #558

Closed
opened 2025-11-20 05:13:44 -05:00 by saavagebueno · 14 comments
Owner

Originally created by @Knniff on GitHub (Dec 19, 2023).

Describe the problem
I tried to connect to my netbird instance from the Android app. I pressed the button and upon seeing the login-page(browser window) i switched to my password manager to copy my password. After returning to the netbird app the browser window was gone and i needed to wait for a long time (~60-120s) until i got a "deadline exceeded" error.

Expected behavior
The app should be able to detect that the browser window was closed prematurely or (even better) the browser window should survive changing to another app and back.

Another workaround could be shortening the deadline or adding a button to cancel the sso login.

Screenshots
Screenshot_2023-12-19-19-14-57-22_3d48df9609e62236b68a85e41dec918e

Originally created by @Knniff on GitHub (Dec 19, 2023). **Describe the problem** I tried to connect to my netbird instance from the Android app. I pressed the button and upon seeing the login-page(browser window) i switched to my password manager to copy my password. After returning to the netbird app the browser window was gone and i needed to wait for a long time (~60-120s) until i got a "deadline exceeded" error. **Expected behavior** The app should be able to detect that the browser window was closed prematurely or (even better) the browser window should survive changing to another app and back. Another workaround could be shortening the deadline or adding a button to cancel the sso login. **Screenshots** ![Screenshot_2023-12-19-19-14-57-22_3d48df9609e62236b68a85e41dec918e](https://github.com/netbirdio/netbird/assets/12730745/4926d9d2-3717-4a97-aca0-3760472cfad6)
saavagebueno added the bugwaiting-feedbackAndroidlogin labels 2025-11-20 05:13:44 -05:00
Author
Owner

@igin commented on GitHub (Dec 27, 2023):

I have the same issue. Even if I enter the credentials correctly I still need to switch to a different app for two factor auth. This bug makes the app unusable for me.

@igin commented on GitHub (Dec 27, 2023): I have the same issue. Even if I enter the credentials correctly I still need to switch to a different app for two factor auth. This bug makes the app unusable for me.
Author
Owner

@ferengi82 commented on GitHub (Feb 7, 2024):

same here

@ferengi82 commented on GitHub (Feb 7, 2024): same here
Author
Owner

@setaou commented on GitHub (Feb 14, 2024):

I have the same problem with the Android App v0.0.19 on Android 14, when trying to log into my instance using a Google account.
Like @igin, the problem is triggered when the phone automatically switches from the browser view to the Google 2FA screen. The only workaround I have found is to log into my account in my browser before and check "remember this device", so that Netbird does not ask for 2FA when logging in.

@setaou commented on GitHub (Feb 14, 2024): I have the same problem with the Android App v0.0.19 on Android 14, when trying to log into my instance using a Google account. Like @igin, the problem is triggered when the phone automatically switches from the browser view to the Google 2FA screen. The only workaround I have found is to log into my account in my browser before and check "remember this device", so that Netbird does not ask for 2FA when logging in.
Author
Owner

@kreativmonkey commented on GitHub (Mar 27, 2024):

I had the same issue on my Phone and found out that it is releated to the passwordless in combination with the firefox browser. Switched to the password and 2FA login method and everything works fine.

@kreativmonkey commented on GitHub (Mar 27, 2024): I had the same issue on my Phone and found out that it is releated to the passwordless in combination with the firefox browser. Switched to the password and 2FA login method and everything works fine.
Author
Owner

@heyzling commented on GitHub (Jun 16, 2024):

Have the same issue.
Client: Android, Netbird v0.0.23, Firefox as default browser, KeePassDroid
Server: self-hosted, Zitadel.

Workaround:

  1. Open Netbird URL in Firefox directly.
  2. Login.
  3. Open Netbird Application.
  4. Login in Netbird. Firefox has saved session, so everything you'll need is to choose user.

This theoretically should work for every mobile OS/browser, because browser saves login session.

@heyzling commented on GitHub (Jun 16, 2024): Have the same issue. Client: Android, Netbird v0.0.23, Firefox as default browser, KeePassDroid Server: self-hosted, Zitadel. Workaround: 1. Open Netbird URL in Firefox directly. 2. Login. 3. Open Netbird Application. 4. Login in Netbird. Firefox has saved session, so everything you'll need is to choose user. This theoretically should work for every mobile OS/browser, because browser saves login session.
Author
Owner

@jakob1379 commented on GitHub (Jun 18, 2024):

worked for me to login on the browser and then the app, for me as well.

@jakob1379 commented on GitHub (Jun 18, 2024): worked for me to login on the browser and then the app, for me as well.
Author
Owner

@friction4825 commented on GitHub (Nov 25, 2024):

Same issue but I can't use the browser to login first. We use DUO as an IDP, and we set every endpoint has to be trusted, requiring us to open the DUO app while login.

@friction4825 commented on GitHub (Nov 25, 2024): Same issue but I can't use the browser to login first. We use DUO as an IDP, and we set every endpoint has to be trusted, requiring us to open the DUO app while login.
Author
Owner

@usmcamp0811 commented on GitHub (Jan 1, 2025):

Just setup my Netbird w/ Authentik. I ran in to this problem with my Android app as well. I was able to fix it by doing what others suggest, opening the browser, logging in and then use the Netbird app. Well during my setting up and testing of things, I blew away my Netbird and then when I tried to add the new server to the app things went more sides ways that expected. The in app browser opens and redirects to the peers list and never goes back to the app. I've tried reinstalling the app and every browser available.. if I get a fix I'll post back..

@usmcamp0811 commented on GitHub (Jan 1, 2025): Just setup my Netbird w/ Authentik. I ran in to this problem with my Android app as well. I was able to fix it by doing what others suggest, opening the browser, logging in and then use the Netbird app. Well during my setting up and testing of things, I blew away my Netbird and then when I tried to add the new server to the app things went more sides ways that expected. The in app browser opens and redirects to the peers list and never goes back to the app. I've tried reinstalling the app and every browser available.. if I get a fix I'll post back..
Author
Owner

@zombiehoffa commented on GitHub (Jan 2, 2025):

switch to jetbird. It's not even close.

@zombiehoffa commented on GitHub (Jan 2, 2025): switch to jetbird. It's not even close.
Author
Owner

@usmcamp0811 commented on GitHub (Jan 2, 2025):

Just setup my Netbird w/ Authentik. I ran in to this problem with my Android app as well. I was able to fix it by doing what others suggest, opening the browser, logging in and then use the Netbird app. Well during my setting up and testing of things, I blew away my Netbird and then when I tried to add the new server to the app things went more sides ways that expected. The in app browser opens and redirects to the peers list and never goes back to the app. I've tried reinstalling the app and every browser available.. if I get a fix I'll post back..

I figured out what I did.. I added my-domain.com to the Redirect list in the management.json. I removed it and the app logged in correctly..

@usmcamp0811 commented on GitHub (Jan 2, 2025): > Just setup my Netbird w/ Authentik. I ran in to this problem with my Android app as well. I was able to fix it by doing what others suggest, opening the browser, logging in and then use the Netbird app. Well during my setting up and testing of things, I blew away my Netbird and then when I tried to add the new server to the app things went more sides ways that expected. The in app browser opens and redirects to the peers list and never goes back to the app. I've tried reinstalling the app and every browser available.. if I get a fix I'll post back.. I figured out what I did.. I added `my-domain.com` to the `Redirect` list in the `management.json`. I removed it and the app logged in correctly..
Author
Owner

@dejan-colic commented on GitHub (Jan 2, 2025):

Since Decembar 12 I am unable to connect to the Cloud. Android app keep on crashing.

Kindly help.
Screenshot_2025-01-03-04-23

@dejan-colic commented on GitHub (Jan 2, 2025): Since Decembar 12 I am unable to connect to the Cloud. Android app keep on crashing. Kindly help. ![Screenshot_2025-01-03-04-23](https://github.com/user-attachments/assets/e61003db-0f01-4d2b-bd06-552a8fd64fa7)
Author
Owner

@nazarewk commented on GitHub (Apr 28, 2025):

Hello @Knniff,

We're currently reviewing our open issues and would like to verify if this problem still exists in the latest NetBird version.

Could you please confirm if the issue is still there?

We may close this issue temporarily if we don't hear back from you within 2 weeks, but feel free to reopen it with updated information.

Thanks for your contribution to improving the project!

@nazarewk commented on GitHub (Apr 28, 2025): Hello @Knniff, We're currently reviewing our open issues and would like to verify if this problem still exists in the [latest NetBird version](https://github.com/netbirdio/netbird/releases). Could you please confirm if the issue is still there? We may close this issue temporarily if we don't hear back from you within **2 weeks**, but feel free to reopen it with updated information. Thanks for your contribution to improving the project!
Author
Owner

@Knniff commented on GitHub (Apr 28, 2025):

I just tested it. It works as intended now.
When switching to my password manager and back the browser window with the login page stays open.

@Knniff commented on GitHub (Apr 28, 2025): I just tested it. It works as intended now. When switching to my password manager and back the browser window with the login page stays open.
Author
Owner

@dejan-colic commented on GitHub (Apr 28, 2025):

Hello everyone,
Now it's not crushing. I am getting Invalid server address on the NetBird
server?
Nokia 3.1 Android 10

Thank you,

On Mon, Apr 28, 2025 at 6:12 PM Finn Kalvelage @.***>
wrote:

Closed #1404 https://github.com/netbirdio/netbird/issues/1404 as
completed.


Reply to this email directly, view it on GitHub
https://github.com/netbirdio/netbird/issues/1404#event-17437798626, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAQQIPRWNGLNSAXL553WCD323ZHQPAVCNFSM6AAAAABSOFQQECVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJXGQZTONZZHA3DENQ
.
You are receiving this because you commented.Message ID:
@.***>

--

Dejan Čolić

Phone: +381 60 6 100 200
Fax: +381 31 530 049
Web: http://www.digitalcreatica.com
Member of: @SevojnoOnline

@dejan-colic commented on GitHub (Apr 28, 2025): Hello everyone, Now it's not crushing. I am getting Invalid server address on the NetBird server? Nokia 3.1 Android 10 Thank you, On Mon, Apr 28, 2025 at 6:12 PM Finn Kalvelage ***@***.***> wrote: > Closed #1404 <https://github.com/netbirdio/netbird/issues/1404> as > completed. > > — > Reply to this email directly, view it on GitHub > <https://github.com/netbirdio/netbird/issues/1404#event-17437798626>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAQQIPRWNGLNSAXL553WCD323ZHQPAVCNFSM6AAAAABSOFQQECVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJXGQZTONZZHA3DENQ> > . > You are receiving this because you commented.Message ID: > ***@***.***> > -- Dejan Čolić Phone: +381 60 6 100 200 Fax: +381 31 530 049 Web: http://www.digitalcreatica.com Member of: @SevojnoOnline
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#558