-
-
Notifications
You must be signed in to change notification settings - Fork 32
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] App is getting closed after some time #43
Comments
Normally a persistent notification should fix this issue, but still it's there so we will need to tweak more. |
I'm trying to reproduce the issue, but I can't manage to. I'm able to record in both the foreground and background for 40 minutes without crashing (with same OS and app version). Have you disabled battery optimization for this app ? |
Btw i think we should tweak the app to ask for app overlay over other apps permission and to disable battery optimization option too. As i don't think there will be any other solution 🤔 |
I uninstalled and reinstalled the newest build and it closed again after ~30 minutes. |
We will try to fix this. But the app crashes when u have turned off the screen? or you remove the app from recent apps too? |
I start the recording, wait till the notification appears and lock the screen, without exiting or closing the app via the app switcher. And all persistent notifications are dismissable on Android 14. |
Okay then share with us. Will try to fix it, until then you can join the discord too if you like, so we can test it faster after any fix. Also i would suggest to try another app too like XSCamera or any other just for testing to see if it behaves same or not during recording. |
I successfully recorded 60+ minutes with the app open. |
Check whether there is a toggle in Settings-> Developer Options -> Disable child process restrictions I guess that should help I think that toggle was added in Android 13 |
I'm adding |
XSCamera worked for the last hour |
i have the same problem. app version: 1.1.3 |
New version will be released in some minutes, which will hopefully fix this issue. I will tag you both once i add the apk to releases :) |
@Chip3211 @git-kup @s0llvan https://github.com/anonfaded/FadCam/releases/tag/v1.2.0-beta |
btw just saw that FadCam is featured once again on HowToMen YT channel :) |
It asked for permission to keep itself active but after ~30 minutes the same old behavior occurred |
I'm also trying to find a solution |
Still if this is happening then the issue is with the android version and this is why i hate the latest versions lol Also can you try other off screen apps and let me know how they perform? You mentioned about XSCamera so it was working fine ? |
Yea, i started a test this morning and stopped it after 4 hours without a problem. |
Hey i just got an idea which will very likely fix this issue! So the idea is to add the I feel this is the very practical approach as we have nothing else to do. Let me know what do you think... |
Okay, thanks. I feel the new idea that i shared will work fine, will let you know when i or @s0llvan do it. |
I'm quite skeptical about this solution 😬, it could cause issues when using Google Maps, for example, or other applications that also use overlays (especially during trips) 😶 |
But if we just test by placing a square somewhere, and if it solves the issue then maybe we can make that a very small pixel and top or at the end of screen so it won't mix with any gestures? |
Good news, I think I've managed to find the solution. I moved the video capture into the service and linked this service to the notification. I completely exited the app, and a button on the notification allows me to stop the recording. There are still bugs to resolve, such as the notification being removable by the user while the recording continues. I also need to handle returning to the app while a recording is ongoing. |
Sounds good.
As far as I understood the Android 14 behavior, the user is able to remove a “persistent” notification but even if dismissed the functionality should not change |
Nice, keep trying so I'll leave this on you now :) |
Bug Report
Description
Already mentioned in #40.
The app is closed (or crashes) by the system after 20-40 minutes and the video is still a temp file and will not be post processed.
When the app is closed, the recording notification still exists, but the camera indicator isn't showing.
Environment
Priority
The text was updated successfully, but these errors were encountered: