Obsidian App Android allways opens same note despite setting "Open latest"

Steps to reproduce

  1. Start Obsidian App Android on Galaxy S22 (One UI 8.0) → Obsidian starts with a note opened, let’s say it’s “Note1”
  2. Choose “Settings > Files and links > Default file to open = Last opened”
  3. Open some random notes
  4. Exit Obsidian App with let’s say “Note7” opened

Did you follow the troubleshooting guide? [Y/N]

Yes.

Expected result

Next time Obsidian App will start with “Note7” opened, because it was the last note opened

Actual result

Every time I start Obsidian App it starts with “Note1” opened, regardless which note was opened on exit

Environment

SYSTEM INFO:
Obsidian version: 1.12.7 (303)
API version: 1.12.7
Operating system: Android 16 (samsung SM-S901B)
Webview version: 149.0.7827.91
Login status: not logged in
Language: en-GB
Live preview: on
Base theme: adapt to system
Community theme: Minimal 8.2.1
Snippets enabled: 1
Restricted mode: off
Plugins installed: 6
Plugins enabled: 3
1: Minimal Theme Settings v8.2.3
2: Omnisearch v1.29.3
3: Excel to Markdown Table v0.4.0


Additional information

It works fine for me. Have you tried in a new vault?

It seems to work properly with a new vault. But how can I fix my real vault?

The “Last opened” ist stored in workspace-mobile.json - is that right?

Would it be a good idea to delete the workspace-mobile.json, to be created newly from scratch?

Are you perhaps also using the Homepage community plugin or similar?

No, I don’t.

I sync the vault with Syncthing, excluding everything I don’t need on the mobile (.stignore):

!snippets
/.obsidian
/.trash

On the mobile not a single community plugin is installed nor is there a theme installed.

Another thought: How do I close the Obsidian app properly?

I keep tapping ‘Back’ until the app closes. Afterwards, I usually swipe it upwards to make sure it’s no longer running in the background. But: There is a sort of history. When I tap ‘Back’, I have to scroll through a soem other notes before the app finally closes. Then, of course, the ‘last’ note isn’t the one I edited most recently, but the last one in the history.

How do I close the app properly?

Can I disable the history?

It’s worth a try. Or you could rename it.

Same as any other app. I’m on iOS but I think Android is the same, where you swipe up from the bottom edge to return to the Home Screen. Altho if you have a back button maybe you also have a home button, which would do it.

This isn’t necessary. Both Android and iOS manage apps so you don’t need to force close them unless there’s a special reason. I hear Android can be more permissive about background activity, but as far as I know Obsidoan doesn’t do anything in the background.

I’d rename it rather than delete it, and do it with Obsidian fully closed and Syncthing paused for a minute. Something like workspace-mobile.json.bak gives you an easy rollback if it makes things worse. Also, using Back repeatedly is probably walking back through Obsidian’s navigation stack, so the “last” file may not be the file you edited last. Use Home/app switcher to leave the app instead, then reopen and test with a simple note change.

Thanks, that explains what’s causing the problem.
Unfortunately, it’s a bit of a hassle to close the app using the app switcher: 1. Tap |||, 2. Swipe left to bring the app to the foreground, 3. Swipe up.
I’d love to see a close button that closes the app immediately without having to go through the navigation.
Thanks for your feedback! I really appreciate it.

You don’t need to do all that unless you’re trying to force close the app, which is only needed if the app is unresponsive. Whatever takes you to the Home Screen is the thing to do. Probably it’s either a Home button or a swipe up from the bottom edge of the screen