Jump to content

Recommended Posts

Posted

I was having this issue with iOS devices - I started the above thread about it - and I was actually about to post in the above thread about how AndroidTV and and the standard Android app handle this issue perfectly, but the latest update has taken the issue I described above and recreated it on AndroidTV. (The standard Android app still handles it correctly.)

Is there any way we can get all the apps to act like standard android in this situation?

Posted

Hi there, what exactly happens ?

Posted

What used to happen in both android apps was when Wireguard happened to be disconnected for some reason, starting the Emby app would take me to the server selection screen (instead of logging in automatically). To fix this I would back out, start or toggle Wireguard, then go back into Emby, and it would log in automatically as if Wireguard had never been disconnected.

Now only the standard android works this way. AndroidTV now does the same thing as iOS that I described in the above thread. I have to manually enter the local server address and port, and then also user credentials.

Posted

Standard android app and iOS should be the same, just FYI. They share the same code for this.

Regarding android tv, I guess the question is, when it tries to connect on startup, is it trying to connect with a different address than the one you end up typing in manually?

Posted
3 hours ago, C.S. said:

I have to manually enter the local server address and port, and then also user credentials.

I cannot think of a way that could be happening other than your app data getting cleared.

Every so often I bring up the app on one of my test TVs before it has initialized its wireless connection and I end up at the server selection screen.  Simply backing out (waiting for wireless to connect) and going back in takes me straight in to my last sign in. 

Posted
6 hours ago, Luke said:

Standard android app and iOS should be the same, just FYI. They share the same code for this.

Regarding android tv, I guess the question is, when it tries to connect on startup, is it trying to connect with a different address than the one you end up typing in manually?

Thank you I forgot to mention - after toggling Wireguard and starting Emby again, Emby (AndroidTV) shows a message saying Invalid username or password. I believe that's because it's trying to connect to the remote address, for which the user is not authorized.

I think the solution is the same as we talked about it the other thread - a client-side option to never fallback to the remote address.

Posted (edited)

Just to keep both threads updated - I realized after Luke posted in the other thread that my standard android app is pointed to my beta server which does not have remote access enabled. I think that's why I'm not seeing the issue with the standard app - it has no fallback after the local address fails.

Edited by C.S.
Posted
13 minutes ago, C.S. said:

Just to keep both threads updated - I realized after Luke posted in the other thread that my standard android app is pointed to my beta server which does not have remote access enabled. I think that's why I'm not seeing the issue with the standard app - it has no fallback after the local address fails.

When you click on a server it tries all known addresses and it picks the one that responds first.

Posted
43 minutes ago, Luke said:

When you click on a server it tries all known addresses and it picks the one that responds first.

I think the issue though is my (stable) server does respond on the remote address, but the response is "Go away you don't belong".

If that's the response, would the app then try the other address? Or does it stop because technically it got a response?

Posted
9 minutes ago, C.S. said:

I think the issue though is my (stable) server does respond on the remote address, but the response is "Go away you don't belong".

If that's the response, would the app then try the other address? Or does it stop because technically it got a response?

@ebrcan test that for the tv app, but that won't be a problem for iOS or our standard android app.

Posted
2 hours ago, C.S. said:

but the response is "Go away you don't belong"

What, specifically, is the response?

Posted
2 minutes ago, ebr said:

What, specifically, is the response?

I'd have to double check but either 401 or 403. 

Posted
54 minutes ago, Luke said:

I'd have to double check but either 401 or 403. 

From exactly what call?  My logic appears to move on to the next address if the /system/info/public call returns either of those.

Posted
10 minutes ago, ebr said:

From exactly what call?  My logic appears to move on to the next address if the /system/info/public call returns either of those.

To that call, and that's what I figured. I don't think this is the issue in the TV app because we went over this when we built this.

Posted

Can you submit a log from the app? I think we will need that. Thanks.

Posted

Ok I sent the log just now. User name is 'test'. Sent from the Who's watching? screen.

Posted

So from that screen if I try to log in manually, it says Invalid User ID or password. But if I hit Change Server and put in the local address, I can log in fine.

Posted
9 minutes ago, C.S. said:

Ok I sent the log just now. User name is 'test'. Sent from the Who's watching? screen.

After doing exactly what?

Posted

From your log I see this:

11-10 15:45:19.616  7121  7121 I System.out: Response received from: https://[redacted]/emby/system/info/public?format=json
11-10 15:45:19.618  7121  7121 I System.out: Adding request to queue: https://[redacted]/emby/system/info?format=json
11-10 15:45:19.681  7121  7164 E Volley  : [422] BasicNetwork.performRequest: Unexpected response code 403 for https://[redacted]/emby/system/info?format=json

See how the /public call returns a proper response?  It isn't until we go to get the authenticated info that we get the 403.

Posted

Is that where it's trying to connect to the remote address? If so then the response is saying probably saying you don't have access to remote access, because the user does not have remote access.

Posted
50 minutes ago, ebr said:

After doing exactly what?

Not sure how much detail you want here but essentially this is the point in the process when it should be logging in automatically with the local address, since the Wireguard route has been toggled and connected. But from this point the only way is to re-enter the local address manually.

 

Posted (edited)

iOS and Android appear to be handling this differently, technically better, but still not correctly. They present me with the log in screen, and it works - I can log in without re-entering the local address and port. But the desired behavior would be to log in automatically, which they don't want to do for some reason.

Edited by C.S.
Posted

I think we're having the same conversation in two places:

 

Posted

Yes I should have just posted in that thread.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...