Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add API-Key #468

Closed
void-naught opened this issue Nov 18, 2024 · 4 comments
Closed

Can't add API-Key #468

void-naught opened this issue Nov 18, 2024 · 4 comments
Labels
question Further information is requested

Comments

@void-naught
Copy link

void-naught commented Nov 18, 2024

Question

So i can enter the server ip/url followed by colon (:) and then port;9999 and the return key works fine in submitting the text-box input but nothing works when i am trying to submit the API-Key.
i am running the stash-android-tv-app directly from an Android phone not via firestick or any other tv-device.
i have tried using hackers-keyboard and google-keyboard/gboard. i am running this on ulefone-19-t running Android-13, i had the smart idea of looking through the "/Android/data" folder to see if i could perhaps find a file that stored the API-Key so i may be able to enter the Key directly into a configuration file, but no such luck, even though i can find the data folders of many apps via the file manager i have installed, i am not able to find "com.github.damontecres.stashapp" any where.
i think the fix would be a simple case of allowing the return/enter key to submit the form or place a submit-button on the API-Key input page.

@void-naught void-naught added the question Further information is requested label Nov 18, 2024
@void-naught void-naught changed the title [QST] - <title> Can't add API-Key Can't add API-Key Nov 18, 2024
@damontecres
Copy link
Owner

damontecres commented Nov 20, 2024

First, just a notice: this app is intended for Android TV (and related) devices. I do not test on phones/tablets. No guarantees that anything will work on your phone.

But, I think this might be because the API key field is now multi-line so its easier to see the whole thing. But that means pressing enter adds a new line instead of submitting.

Not sure about a workaround yet.

You could try manually adding the preferences file, but I have no idea if it would work. See #63 (comment)

@dscisci
Copy link

dscisci commented Nov 22, 2024

I'm having the same issue using a TV with Google TV built in. The app sideloaded fine, and I can paste the API key in using my phone as a keyboard, but there is no way to submit it and it is there where I'm stuck. As @void-naught said, a submit button would be great.

@damontecres
Copy link
Owner

I'm hoping #469 will resolve these issues once and for all.

I haven't tested on a physical phone, but I tried testing the emulator with a Pixel 8 image and these changes seem to make it work better.

I want to test #469 more before releasing though.

damontecres added a commit that referenced this issue Nov 26, 2024
Related to #468 

Hopefully resolves issues with entering the API key.

Adds submit buttons so that if the UI gets in an unusual state, there's
still a way to submit and move to the next step.

Reverts the multi-line change from #458 since that seems to cause lots
of issues. I think another issue was `hasNext(true)` was removed in #458
so there wasn't the same hints sent to keyboard.

Also adds a hack that might help touch screen devices to enter the info
by examining the underlying edit text views.
@damontecres
Copy link
Owner

Hopefully this is fully fixed in v0.5.5.

I also added a new workaround for Fire TV devices here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants