Hacki icon indicating copy to clipboard operation
Hacki copied to clipboard

Cannot login on Android 11

Open il-santo opened this issue 3 years ago • 11 comments

I have several devices with Android 11 and when I try to login to my Hacker News account the app keeps loading and never succeeds to gain access to it. Screenshot_2022-06-22-07-50-29-671_com.jiaqifeng.hacki.jpg

il-santo avatar Jun 22 '22 05:06 il-santo

Hi @il-santo , thanks for reporting the issue. Can you tell me which version of the app are you on? Thx! (You can check the version number in settings by tapping on “About”.

at the same time, you can try logging in over other networks try using cellular data instead of Wi-Fi)

Livinglist avatar Jun 22 '22 07:06 Livinglist

I tried all versions since the introduction of the login feature until the last one (0.2.21). I tried both on WiFi and on cellular data.

il-santo avatar Jun 22 '22 07:06 il-santo

This might be related https://github.com/mogol/flutter_secure_storage/issues/363

I will definitely take a look at this later. Thanks for letting me know!

Livinglist avatar Jun 22 '22 08:06 Livinglist

v0.2.22 just got released and hopefully fixed this issue. As I’m not quite sure the exact cause since I don’t have an android device to debug on, I suspect this is caused by https://github.com/mogol/flutter_secure_storage/issues/13#issuecomment-421083742

you might have to delete and reinstall the app.

Livinglist avatar Jun 23 '22 07:06 Livinglist

Without uninstalling the app, it still doesn't work. And the bug remains even if I uninstall it. Sorry!

il-santo avatar Jun 23 '22 08:06 il-santo

@il-santo is your system backup feature turned on?

Livinglist avatar Jun 23 '22 15:06 Livinglist

Yes, but I just verified that there is no backup for Hacki.

il-santo avatar Jun 23 '22 16:06 il-santo

@il-santo Just released v0.2.23 with a fix for infinite loading, hopefully this time it works.

Livinglist avatar Jun 24 '22 02:06 Livinglist

@Livinglist , it's still not working. :-( Maybe later I will provide you with a logcat, if I can find the time and I remember to do it...

il-santo avatar Jun 24 '22 05:06 il-santo

@il-santo  😢 mission failed, we will get em next time.

Livinglist avatar Jun 24 '22 05:06 Livinglist

@Livinglist I tried to investigate further but logcat really doesn't show anything useful. No errors, no warnings, no timeouts. Sorry.

il-santo avatar Jun 24 '22 11:06 il-santo

I'm on Android 12 and I have the same problem. I am using Hacki 1.3.3 (newest version from F-Droid)

lead0r avatar Apr 01 '23 10:04 lead0r

@lead0r hi there! Can you try logging in then go to settings, scroll to bottom, tap on About and then tap on Report Issue, select Email which will send an email to me with your logs attached or select GitHub which will save the log file to your local storage. This will greatly help with debugging!

Also can you try logging in Hacker News in a browser using the same account on the same network you were using to see if your account requires CAPTCHA on logging in?

Livinglist avatar Apr 01 '23 16:04 Livinglist

@lead0r hi there! Can you try logging in then go to settings, scroll to bottom, tap on About and then tap on Report Issue, select Email which will send an email to me with your logs attached or select GitHub which will save the log file to your local storage. This will greatly help with debugging!

Also can you try logging in Hacker News in a browser using the same account on the same network you were using to see if your account requires CAPTCHA on logging in?

Done. And on the same network in a browser successfully logged in without any captcha

lead0r avatar Apr 01 '23 16:04 lead0r

@lead0r thanks! Does your user have any activity on Hacker News before? Trying to confirm something cuz I just saw this from HN‘s api doc:

Users are identified by case-sensitive ids, and live under /v0/user/. Only users that have public activity (comments or story submissions) on the site are available through the API

Livinglist avatar Apr 01 '23 16:04 Livinglist

@Livinglist oh, okay. I've had this account for a while but only for upvoting etc. I could post a comment and see if I can log in if that helps?

lead0r avatar Apr 01 '23 16:04 lead0r

@lead0r that would be really helpful!

Livinglist avatar Apr 01 '23 16:04 Livinglist

@Livinglist well, that was easy :D I posted a comment in a browser and when I opened Hacki afterwards, I was already logged in. Thank you!

lead0r avatar Apr 01 '23 16:04 lead0r

@Livinglist well, that was easy :D I posted a comment in a browser and when I opened Hacki afterwards, I was already logged in. Thank you!

No problem! I will have a fix merged today.

Livinglist avatar Apr 01 '23 16:04 Livinglist