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

custom url schema support #319

Closed
gregavola opened this issue Apr 18, 2017 · 3 comments
Closed

custom url schema support #319

gregavola opened this issue Apr 18, 2017 · 3 comments

Comments

@gregavola
Copy link

gregavola commented Apr 18, 2017

is there a way to use this plugin to support both'urlschema:// and http://XXX.app.link formats?

Fir example if someone goes to urischema://go/here, it would be called in the Branch.initSession area?

@ethanneff
Copy link
Contributor

Hello,

Thank you for reaching out.

Both URI Schemes (urlschema://) and Branch Deep Links (http://XXX.app.link) will open your app. However, you can only pass data and view analytics (clicks/installs/opens) with Branch Deep Links. URI Schemes will not pass data into Branch.initSession().

Thanks,

@ethanneff
Copy link
Contributor

Side note:

I've talked internally within my team to make this a feature request. This would make URI Schemes pass data into Branch.initSession(). For example. branchswift30://?ll=37.44469,-122.15971&z=10 would pass data into into Branch.initSession() as { "+non_branch_link": "branchswift30://?ll=37.44469,-122.15971&z=10" }.

Since our Cordova SDK is built on top of our iOS and Android SDKs, this feature could take a while to finalize. In the meantime, the Branch recommendation is to continue using Branch Deep Links (http://XXX.app.link/xyz) for your deep linking.

Best,

@ahmednawar
Copy link
Contributor

We've pushed a backend fix for this today similar to what @ethanneff outlined.

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