C.S. 103 Posted November 9 Posted November 9 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?
C.S. 103 Posted November 9 Author Posted November 9 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.
Luke 43745 Posted November 9 Posted November 9 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?
ebr 17109 Posted November 9 Posted November 9 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.
C.S. 103 Posted November 10 Author Posted November 10 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.
C.S. 103 Posted November 10 Author Posted November 10 (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 November 10 by C.S.
Luke 43745 Posted November 10 Posted November 10 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.
C.S. 103 Posted November 10 Author Posted November 10 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?
Luke 43745 Posted November 10 Posted November 10 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.
ebr 17109 Posted November 10 Posted November 10 2 hours ago, C.S. said: but the response is "Go away you don't belong" What, specifically, is the response?
Luke 43745 Posted November 10 Posted November 10 2 minutes ago, ebr said: What, specifically, is the response? I'd have to double check but either 401 or 403.
ebr 17109 Posted November 10 Posted November 10 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.
Luke 43745 Posted November 10 Posted November 10 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.
Luke 43745 Posted November 10 Posted November 10 Can you submit a log from the app? I think we will need that. Thanks.
C.S. 103 Posted November 10 Author Posted November 10 Ok I sent the log just now. User name is 'test'. Sent from the Who's watching? screen.
C.S. 103 Posted November 10 Author Posted November 10 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.
ebr 17109 Posted November 10 Posted November 10 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?
ebr 17109 Posted November 10 Posted November 10 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.
C.S. 103 Posted November 10 Author Posted November 10 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.
C.S. 103 Posted November 10 Author Posted November 10 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.
C.S. 103 Posted November 11 Author Posted November 11 (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 November 11 by C.S.
Luke 43745 Posted November 18 Posted November 18 I think we're having the same conversation in two places:
C.S. 103 Posted November 19 Author Posted November 19 Yes I should have just posted in that thread. 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now