We strongly recommend you to search the forum with possible keywords before making a new feature request. If your request is very similar to an existing one, consider liking it and/or making a comment rather than making a new one. Once you’ve searched and determined that this is a new request, delete this line.
Use case or problem
On Android mobile, in my case Graphene OS, the app startup time is very slow (around 10s on Pixel 7a). After a while of switching apps, Obsidian will be killed and needs to be opened again.
Proposed solution
It is suggested on the OS forums that : “if in AppOps if they have the setting “AllowForegroundSpecialProcess” app op and set to “granted”, it will remain in foreground as a top app and not get killed.”
Make it thst if you exit from obsidian mobile using back button in android it will not cloae the obaidian completally sometimes you need to go in and out of obaidian to other apps you may close it then you have to wait for it to load up
Isn’t this true for all apps? This is related to the way the Android OS manages memory. In settings, you can turn off “background usage” for apps that you don’t want running in the background or show all running apps → swipe up to close them individually.
I put the obsidian app battery setting to not restricted but still when i press back button twice it will exit and close the app and if I open it again I need to wait for it to load
After closing and reopening Obsidian, it takes around 5–10 seconds(depend) to load the vault. If there were an option to keep it running in the background, it would make note-taking much smoother.
Android automatically terminates inactive sessions after a certain period unless the app has special permissions to stay alive. Since Obsidian doesn’t persist in the background, it often restarts when switching back from another app.
I frequently take notes in a stepwise manner, constantly jumping between apps. The problem is that every time I switch back to Obsidian, it often restarts, which is frustrating. First, there’s the load time; second, I have enabled the “Open daily notes at startup” feature, which means I don’t return to the exact note I was working on.
For example, if I’m reading How to Talk to Anyone and jotting down notes, I need to switch between my EPUB reader and Obsidian repeatedly. But when I return to Obsidian and see it restarting, it disrupts my workflow and kills my focus. It’s incredibly frustrating.
A background running option or a way to prevent automatic termination would greatly improve the experience.
On Android, switching away from Obsidian for even a couple of minutes results in the app being killed or suspended by the OS. (Even if I have 8 GB of RAM and am happy to reserve some for Obsidian.)
When I return, I have to wait for it to fully reload. This might happen dozens of times a day.
This happens even with battery optimization set to “Unrestricted” for Obsidian. I’ve dug into my settings, including developer settings, but I can’t stop Android aggressively killing it even it’s in the background.
Possibly relevant
Obsidian appears to defer full initialization until it is the foreground app. So even if the process is still alive or is promoted to start in the background (which I could apparently do with Tasker) it doesn’t make Obsidian “ready to go”.
Proposed solution
Add an optional foreground service (persistent notification) mode for Android.
(Less important, but would be nice: Perhaps the foreground service would also allow Obsidian to complete its full initialization in the background after launch, rather than deferring until it’s is in focus.)
Current workaround (optional)
Battery optimization set to Unrestricted for Obsidian (helps in theory, but not much in practice).
ADB commands to increase Android’s cached process limit and disable the phantom process killer (max_cached_processes, settings_enable_monitor_phantom_procs) (I haven’t tried this yet). It’s a very blunt approach that allows all processes to stay longer without giving any priority to Obsidian.
I mentioned this to a friend, who gave me this solution using Tasker. and it’s working! It’s really nice to eliminate that loading time.
(I’m sure there’ll be occasions where it doesn’t work and it still has to load. But so far it’s working great.)
(Edit: 3 days later, it doesn’t always work and I had some glitches and has to remake it. But still, it seems to greatly reduce the frequency of Obsidian reloading.)
In Tasker:
Create a profile
Application
Select All your high usage apps
tap back arrow at top to finalize the profile
Select New Task
Task name “Backload Obsidian”
Select App Info
Package/App Name > select Previously Opened App
Select Time > 0
tap back arrow at top to finalize action
select Launch App > Obsidian
select Launch App > Next to the symbol tap the two crossing arrows, now Tap the symbol next to the two crossing arrows.
select %app_package
tap back arrow at top to finalize action
tap back arrow at top to finalize task
tap tick at top of Tasker.
Thanks for sharing the workaround, since the mobile UI overhaul the waiting was more frequent and frustrating because it hindered workflow. Now is a lot better but still hope for a native solution as it’s draining battery faster than I expected.