8000 GitHub - XiaochenFTX/LinkJump: This is a Unity package for open a url with other app.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

XiaochenFTX/LinkJump

Repository files navigation

LinkJump

This is a Unity package for open a url with other app.
Support iOS and android.

API

LinkJump.Jump("tmall://tb.cn/xxxx");

If you want to try with more app, use parameters trySchemes:
LinkJump.Jump("tmall://tb.cn/xxxx", new []{"taobao", "weixin", "alipay"});

If all apps are not installed, open with browser by default. And change the scheme to 'https'.
If you do not want to open it with browser, set the 'openBrowser' false:
LinkJump.Jump("tmall://tb.cn/xxxx", new []{"taobao", "weixin", "alipay"}, openBrowser: false);

If you want to the scheme is 'http' when open browser, set the 'https' false:
LinkJump.Jump("tmall://tb.cn/xxxx", new []{"taobao", "weixin", "alipay"}, https: false);

If you want to know if this url can be opened:
LinkJump.CanOpenUrl(url)

For iOS

If you want to open url with other app in iOS, you should add scheme to 'LSApplicationQueriesSchemes' in Info.plist.
I write a script to do this with unity editor.
Step1. click 'ftxtool' in menu, and click 'Build Queries Scheme List'.
Step2. choose the 'QueriesSchemeList.asset' and add your scheme to the array 'Schemes'.
Step3. build as normal, schemes will write to Info.plist automatically.

About

This is a Unity package for open a url with other app.

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Packages

No packages published
0