Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support url scheme #10

Closed
steve21124 opened this issue Nov 5, 2016 · 3 comments
Closed

support url scheme #10

steve21124 opened this issue Nov 5, 2016 · 3 comments

Comments

@steve21124
Copy link

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

@gliechtenstein
Copy link
Contributor

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

@steve21124
Copy link
Author

thank you. super fast turn around

@mcken2ja
Copy link

Does this support the options and params feature in href?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants