Yes the same URI scheme works on both iOS and desktop/laptop (I think it assumes you have at one point opened the same vault on both). Here’s what I use, though I forget where I got it from:
const cd = Credential.create("Obsidian", "Obsidian")
cd.addTextField("Vault", "_Vault - LLTB")
cd.authorize()
const URL = draft.processTemplate(`obsidian://new?vault={{${cd.getValue("Vault")}}}&name={{[[display_title]]}}&content={{[[body]]}}`)
app.openURL(URL)