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

Remove 'Focus Launcher is running' notification #24

Open
tyler-dane opened this issue Jul 26, 2021 · 4 comments
Open

Remove 'Focus Launcher is running' notification #24

tyler-dane opened this issue Jul 26, 2021 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@tyler-dane
Copy link
Member

As a user, I want to install & use Focus Launcher without seeing any unnecessary notifications, so that I can focus more on using my phone mindfully.


This persistent notification was introduced in #20 (#19). As I understand, the more recent version of Android SDK enforced stricter notifications. It is possible to avoid this notification (by turning Focus Launcher back into a background service, I think).

When @zed13 tried that initially, the app started crashing.

Fgure out how to avoid that notification while maintaining the app's stability.

Screen Shot 2021-07-26 at 11 25 58 AM

@tyler-dane tyler-dane added the enhancement New feature or request label Jul 26, 2021
@zed13
Copy link

zed13 commented Jul 27, 2021

This persistent notification was introduced in #20 (#19). As I understand, the more recent version of Android SDK enforced stricter notifications. It is possible to avoid this notification (by turning Focus Launcher back into a background service, I think).
When @zed13 tried that initially, the app started crashing.

You understood me in a wrong way. It's just impossible to have a background task without such notifications on new Android's versions. Here is some info about such restriction https://developer.android.com/about/versions/oreo/background.

@tyler-dane
Copy link
Member Author

It's just impossible to have a background task without such notifications

But how do other launchers get setup without displaying that notification (Before Launcher, for example)?

@zed13
Copy link

zed13 commented Jul 28, 2021

It's quite interesting actually. I've looked at Before launcher screen shots at Google Play. Looks like they use special workaround for this NotificationListenerService. To work without notification it should be properly configured. I've never worked with NotificationListenerService.

There is such class in our codebase. And it has appropriate config in AndroidManifest. Why previous developers have decided to make it foreground - I don't know.

Never the less, there are two additional services wich are run as foreground service:

  1. AlarmService - redeliver notifications in specified period of time. It looks like work for NotificationListenerService (It has special api for such things).
  2. StatusBarService - tracks down user time in junk apps. I think it could be replaced with calls to special api. So, need to investigate further.

@tyler-dane
Copy link
Member Author

Interesting. OK, so it sounds like it's possible, but would take some more investigation and work. I say we put this on hold until after the 1.0.0 launch and let the initial user feedback decide when to prioritize this

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

No branches or pull requests

2 participants