-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
The service notification disappears after some times #126
Comments
@AlenToma, the background handling implementation heavily depends on the OS flavor you are running. Normally, if when the notification disappears, it means the service is no longer running, but it may not be the case. The only way of knowing is checking the process itself. |
The process is while loop that always running, so if there were an error on the android part. then you could not have seen it. The notification is always up as long as my app is open. I am using this in |
I also noticed that the service got stopped when I closed the application. May be related. Call to stopForeground() here might be the reason: Line 92 in 318375c
|
Obs I forgot to say that the notification disappear only when the app have gone on foreground for 6 to 10 mins |
@JariPulkkinen that |
@AlenToma, does it happen in version 2.6.4? |
Hmm was |
@AlenToma, the latest version is 2.6.6. Could you check if 2.6.4 works for you? |
@Rapsssito in the latest version (2.6.6) background services will be stop and notification bar will gone when close application, before updating to the latest version it was been working correctly, please review. |
@Mhp23, could you please confirm that this did not happen in 2.6.5 or 2.6.4? |
@Rapsssito in v2.6.5 that I worked by it, it hadn't the problem and work correctly. |
I see the notification disappear as well after 1 min (it looked pretty exaxt) (Pixel3, Android 12). (Application is in background, background process is still running (i see the console outputs) also after the notification went away) my guess was that the system is maybe removing them automatically (as it's pretty exactly one minute until it's gone) but haven#t found anything on this topic. i'm using the latest 2.6.6 version. |
🎉 This issue has been resolved in version 2.6.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@AnagramEngineering @Mhp23 @AlenToma could you check if this is fixed in the last version as I reverted #124 |
I can confirm this is working with 2.6.6 version. The notification is shown until the process is ended (which is happening after 5 minutes on my side (closing ble connection). thx @Rapsssito |
I am truly sorry I did not have time to test this with the other version, will try to make time to test it later on. |
Hi, as the title says, the notification disappears after sometime but the
BackgroundService.isRunning
is still running.Is that okey ? or is it a problem.
as I know when the notification disappears it should indicate that the service is down right?
The text was updated successfully, but these errors were encountered: