Errors in mobile plugin development

Hey, I'm trying to adapt the Journal Plugin for mobile and having some issues.

I mainly want to add commands like Open Today's Note and Insert Link to Today's Note to the NoteToolbar or Editortoolbar and used the Home Note Plugin as a reference on how to implement this feature.
This is working well but I am getting lots of error messages like this on the Open Today's Note command: Error: Cannot execute a command without a runtime : editor.focus. The command still works and it creates and opens the note like it should, so I'm not sure what the issue is. This leads to the plugin having an error symbol in the settings, so I would like to find a fix for it if possible.

Does anyone have an idea what the issue could be? This is the repo if someone wants to take a look.

Anyone have some insight into plugin development for mobile?

Currently, editor.focus only seems to work on mobile if the Markdown editor is open (and not the viewer). On desktop, editor.focus should focus the note viewer if the Markdown editor isn't visible, but may fail if no note is open.

Based on this, it may make sense to adjust Joplin's editor.focus command on mobile to either:

Related notes:

1 Like

Thank you for your detailed response. If I'm understanding correctly that means that the issue is in Joplin's source code and not in the plugin? Is there any workaround for this error or would I just need to wait for this to be adjusted in the mobile implementation at some point?