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

Login needed each time the app is opened #2

Closed
JoshuaKimsey opened this issue May 28, 2023 · 18 comments
Closed

Login needed each time the app is opened #2

JoshuaKimsey opened this issue May 28, 2023 · 18 comments

Comments

@JoshuaKimsey
Copy link

I noticed that the user has to login each time the app is opened, if it doesn't stay open in the background.

It would be nice if the login can be preserved in order to avoid needing to login each time, if this is possible with the way the app has been implemented.

@woheller69
Copy link
Owner

on my devices I do not have this issue...

@sinanSEsinan
Copy link

I have the same issue, MIUI Global 14.0.1

@woheller69
Copy link
Owner

If someone knows a fix let me know. I am running the app on several devices and none has this issue...

@Kurasami
Copy link

Kurasami commented Jun 7, 2023

Yeah this is happening to me too. Using Xiaomi 13 Ultra. I need to log in every single time and with TOTP turned on, it's a pretty annoying process.

I found these as a starting resource in attempting to fix the issue:

  1. https://stackoverflow.com/questions/22010474/android-webview-keep-user-logged-in
  2. https://stackoverflow.com/questions/41977295/keep-user-logged-in-when-using-a-android-webviewclient
  3. https://stackoverflow.com/questions/48195419/can-we-save-login-data-in-android-webview

Seems there's a couple of ways to ensure that login data is saved.

Android: 13
MIUI: 14.0.15

@Kurasami
Copy link

Kurasami commented Jun 7, 2023

Edit: Same problem on OnePlus 10 Pro Android 13.

Could it be related to disabling AI/Training etc. in the chatGPT settings?

At least it seems Xiaomi & OnePlus devices are affected now.

@woheller69
Copy link
Owner

no idea. Do you get something like "Your session has expired?" I get that sometimes after a few days.

@Kurasami
Copy link

Kurasami commented Jun 7, 2023

Nope. It just asks us to login again. I literally just swipe the app away and boom, logged out.

You could try one of the methods on the Stackoverflow page.

@woheller69
Copy link
Owner

Maybe you have a strange webview installed on your system? Can you check your webview installation? Is it the "normal" Android System WebView from Google or something else like Bromite Webview?

@Kurasami
Copy link

Kurasami commented Jun 8, 2023

It's the plain old Android System Webview.

Screenshot_2023-06-08-06-12-44-291_com android vending-edit

You can ignore that it's the beta. My wife isn't in the beta and she gets logged out on her phone too when she closes the app.

My version is: 115.0.5790.21
Her's: 114.0.5735.60

@woheller69
Copy link
Owner

woheller69 commented Jun 8, 2023

Can you try this? I added a flush() for CookieManager in onPause(). Maybe that helps.
I also added a toast "No cookies available" if cookies got deleted. Do you get that every time?

-Uninstall
-Remove .zip
-Install

Test version1:
app-release.apk.zip

@woheller69
Copy link
Owner

woheller69 commented Jun 8, 2023

And here is another test version that allows third party cookies.

Test version 2:
app-release.apk.zip

@SomeDeveloping
Copy link

SomeDeveloping commented Jun 8, 2023

Hello, tried both test versions and they work fine now. I'll keep the first version. (MIUI 14 with Bromite Webview)

@woheller69
Copy link
Owner

@Kurasami Does Test version 1 also work for you and your wife?

@Kurasami
Copy link

Kurasami commented Jun 10, 2023

Can you try this? I added a flush() for CookieManager in onPause(). Maybe that helps. I also added a toast "No cookies available" if cookies got deleted. Do you get that every time?

-Uninstall -Remove .zip -Install

Test version1: app-release.apk.zip

Works for both of us 100% dude. You rock!
Swiping off and even force killing the app and I am still logged in.

Now if you could just give us the option to remove the top proxy banner that would be great 👍
but good on you for working on that ticket too.

P.S. Sending some money your way. Thanks for fixing this so fast dude! You rock. I've used other apps but they all bundle with a bunch of other nonsense and essentially what anyone needs is just a low-overhead PWA like this to use the site. This is fantastic. HUGE thanks!

@woheller69
Copy link
Owner

Will make a new release next week without the proxy stuff.

No idea if that works, I don't use proxies...

woheller69 added a commit that referenced this issue Jun 12, 2023
@woheller69
Copy link
Owner

Here is an apk without proxy banner
https://github.com/woheller69/gptAssist/suites/13528316041/artifacts/743824055

will be soon on F-Droid

@825i
Copy link

825i commented Jun 22, 2023

Is this still coming to F-Droid sometime? I see new releases but they are not on F-Droid.

@woheller69
Copy link
Owner

V1.6 is on F-Droid

https://f-droid.org/de/packages/org.woheller69.gptassist/

If you have the test version above you need to uninstall first, due to different signing key

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

No branches or pull requests

6 participants