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

Notifications are always disabled on first application run #4858

Closed
Lakoja opened this issue Jan 8, 2025 · 0 comments · Fixed by #4883
Closed

Notifications are always disabled on first application run #4858

Lakoja opened this issue Jan 8, 2025 · 0 comments · Fixed by #4883
Labels

Comments

@Lakoja
Copy link
Collaborator

Lakoja commented Jan 8, 2025

Detailed description

This is at least true for non-push notifications and there for newer phones:

The ordering of steps regarding notification setup is wrong in "MainActivity.onCreate".
First "fetchUserInfo" will be done - which surprisingly by its name will try all notification setup; e. g. create channels and so on.
Only as the last block after that will the "request notification permission" dialog be triggered.

So after a very first install of Tusky you need to fully restart it (i.e. restart the phone?) in order to get notifications.

Steps to reproduce the problem

  1. Create a new virtual device with Api >= 33
  2. Start Tusky there
  3. Allow notifications when asked
  4. There will be no notifications (for example there is the output "NotificationsDisabled" in Logcat)
  5. Only after a full restart will there be some

Debug information

Current develop. Bu probably for some time.

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

Successfully merging a pull request may close this issue.

1 participant