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

[BUG]: anki droid freezing when syncing when notifications permission missing #17493

Open
3 of 4 tasks
daniboi22 opened this issue Nov 24, 2024 · 6 comments
Open
3 of 4 tasks

Comments

@daniboi22
Copy link

Checked for duplicates?

  • This issue is not a duplicate

Does it also happen in the desktop version?

  • This bug does not occur in the latest version of Anki Desktop

What are the steps to reproduce this bug?

Hi.

I haven't been able to sync my anki droid in a long time now. As soon as I try, the app freezes and does nothing. I close it and reopen to keep using it.

Thanks

Expected behaviour

Just sync as normal

Debug info

AnkiDroid Version = 2.19.2 (b073f52783583fd4fd1436d986090ced9006a66b)

Backend Version = 0.1.43-anki24.06.3 (24.06.3 d678e39350a2d243242a69f4e22f5192b04398f2)

Android Version = 14 (SDK 34)

ProductFlavor = play

Manufacturer = samsung

Model = SM-S711B

Hardware = s5e9925

Webview User Agent = Mozilla/5.0 (Linux; Android 14; SM-S711B Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/130.0.6723.107 Mobile Safari/537.36

ACRA UUID = ca08b47f-d633-41f7-941b-fcc8973f1aa6

FSRS = 0.6.4 (Enabled: false)

Crash Reports Enabled = true

(Optional) Anything else you want to share?

No response

Research

  • I have checked the manual and the FAQ and could not find a solution to my issue
  • (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)
Copy link

welcome bot commented Nov 24, 2024

Hello! 👋 Thanks for logging this issue. Please remember we are all volunteers here, so some patience may be required before we can get to the issue. Also remember that the fastest way to get resolution on an issue is to propose a change directly, https://github.com/ankidroid/Anki-Android/wiki/Contributing

@mikehardy
Copy link
Member

Hi there - sorry about that, if this were me it would give me a bit of anxiety - as sync is how I back things up in case my phone dies or is lost for whatever reason.

First things first, do you have any another method of backing up your collection? If not you should seriously think of doing a full collection export and saving it somewhere as a critical data protection item - before doing anything else.

That done, can you see what the sync settings look like, to make sure they are in good shape?

  • make sure, in system settings, that AnkiDroid notifications are enabled - we use a persistent foreground notification to display sync status
  • make sure you can log in to ankiweb directly using a regular web browser to https://ankiweb.net
  • try to sync, does it work now?
  • in AnkiDroid settings -> sync:
    • select the AnkiWeb email address and "Log out" in the following screen then hit back so you are on sync settings again
    • select AnkiWeb account and try to log in again
    • try to sync, did it work?
    • in the Custom Sync Server settings enable "sync url" and type in something like http://example.com, but then disable it
    • try to sync again, did it work?

Hopefully something in there does the trick.

@daniboi22
Copy link
Author

daniboi22 commented Nov 25, 2024 via email

@mikehardy mikehardy changed the title [BUG]: anki droid freezing when syncing [BUG]: anki droid freezing when syncing when notifications permission missing Nov 25, 2024
@mikehardy
Copy link
Member

That's great to hear that worked for you!

For us that's a problem though. I've altered the title of this issue slightly and we'll need to investigate and fix it here.

If notification permission for the app is removed we should handle that correctly with some user messaging and sending the user to settings to fix it, vs hanging of course.

Cheers

@david-allison
Copy link
Member

@mikehardy could this be the ANR you mentioned?

@mikehardy
Copy link
Member

Perhaps yes, the thought occurred to me but without logcat hard to say. Certainly an easy thing to tackle and it will likely affect it positively

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

No branches or pull requests

3 participants