support url scheme #10

Closed
steve21124 opened this Issue Nov 5, 2016 · 2 comments

Comments

Projects
None yet
2 participants

support url scheme like appname://url/https://jasonbase.com/things/fen.json, and it opens that particular url

Contributor

gliechtenstein commented Nov 5, 2016

I pushed a fix overnight. Here's how it works:

The url scheme takes the following form:

appname://href?url=https://jasonbase.com/things/fen.json&transition=modal&view=jason

Basically it translates the arguments into an href object and acts accordingly. So for example if you just wanted to do a push transition to a url, you could just leave out 'transition' like this:

appname://href?url=https://jasonbase.com/things/fen.json

Need to test a bit and then will merge to master. If anyone wants to try this out, please clone from develop branch and try it.

p.s.
You can find the url scheme prefix when you run Setup. (Or you can change it to you liking by opening Info.plist and find URL scheme attribute)

screen shot 2016-11-05 at 1 45 44 pm

thank you. super fast turn around

steve21124 closed this Nov 5, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment