There was a discussion today in our discord about ways we can make it easier to keep our mobile devices in Sync, without having to actively manage it.
One of the ways we came up with, on Apple devices at least, is to use a shortcut and automation to open Obsidian when first plugging in the device to charge (presumably during non-use time), so that Obsidian can open up, Sync, and then close at a set time.
Prerequisites
- Prevent device sleep must be set to True/On in Obsidian Sync Settings
- An iOS/iPadOS device that supports Shortcuts and Automations.
Steps
- Create a new shortcut with the items in the picture below, or you You can access the shortcut link here: Shortcuts
- Adjust the wait from 900 seconds to however many seconds you want it to stay open.
- Leave/Save the shortcut
- Go to Automation in Shortcuts, and create a new one with the condition Charge
- Select Is connected , and run immediately. It’s up to you if you want it to be notified that it runs.
- Plug it in, and have at it.
Future options: You can add an end-if or else if you want it to stop and close when disconnected from the charger. You can also add a timer, and whatever else you want.