URL scheme for IOS app


#1

happy to have the new app :slight_smile:

I use apps like Workflow and Launcher that require a URL scheme to interact with apps. This could for example allow me to create a button in launcher to any item in my Dynalist document and open it in the app.

This is a “Developers” request because it probably won’t affect the average user but would allow better integration between the Dynalist app and other apps.


#2

For basic launching, you can make the url scheme very simple for users to create. For example, this is a legal url scheme:

dynalist://https://dynalist.io/d/xxxxxxxxx

Just a matter of pasting the url onto dynalist://, no parsing or encoding req’d.


#3

@Matt_Groth, thanks for creating this topic! Do I mind if I move it to “Features”, as this is useful to all iOS app users, and not just devs?


#4

@Erica, while you are definitely correct that this would be useful for all users, I think it might also be good to have a topic about it here so developers can weigh in with our ideas for how the url scheme syntax could be mos tuseful. :slight_smile:

I think @rawbytz has a great point that basic launching would be a simple endeavor .But perhaps it can be even simpler by removing redundant name space stuff?

dynalist://d/xxxxx


#5

Vehemently disagree. :smile: The method I propose uses two URL schemes:

dynalist://https://

With two schemes, you don’t need to snip and encode… you just pre-pend the original URL with dynalist://

https://dynalist.io/d/xxxxxxxxxxxxxx#z=xxxxxxxxxxxxxxx
… becomes
dynalist://https://dynalist.io/d/xxxxxxxxxxxxxx#z=xxxxxxxxxxxxxxx
It may be uglier, but it is way simpler, and faster to create.

With a single url scheme, first you must snip the Dynalist path and hash:
d/xxxxxxxxxxxxxx#z=xxxxxxxxxxxxxxx

Then encode it to this:
d%2Fxxxxxxxxxxxxxx%23z%3Dxxxxxxxxxxxxxxx

Then prepend with the scheme, command and parameter
dynalist://open?path=d%2Fxxxxxxxxxxxxxx%23z%3Dxxxxxxxxxxxxxxx


#6

True, but is there any reason we can’t make both work?


#7

… I was going to mention that, but felt my post was long enough already :wink:

And for other stuff, like creating new bullets commands and parameters and encoding will be required.


#8

Ah, didn’t know that’s where you were coming from. I totally understand now!


#9

Any progress with this? I’m using Drafts 5 a lot sice it came out and would love to be able to integrate it with Dynalist …