Skip to content

new API for deep linking#1310

Merged
swansontec merged 2 commits intodevelopfrom
allen/deepLinkingSimplex
Apr 8, 2019
Merged

new API for deep linking#1310
swansontec merged 2 commits intodevelopfrom
allen/deepLinkingSimplex

Conversation

@ahujsak
Copy link
Copy Markdown
Contributor

@ahujsak ahujsak commented Mar 28, 2019

This is the new API for deep links with 'plugin' as the path name. It is currently simplex only. Simplex plugin with this deep link has not been integrated in yet.

PR Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS Tablet
  • Tested on small Android
  • n/a

@ahujsak ahujsak requested a review from swansontec March 28, 2019 15:16
if (Object.keys(this.props.wallets).length > 0 && this.props.deepLinkPending) this.checkForWallet()
}
processPluginDeepLink = (parsedUrl: Object) => {
if (parsedUrl.pathname.includes('simplex')) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like this to be more plugin-agnostic, but this works for now.

if (Object.keys(this.props.wallets).length > 0 && this.props.deepLinkPending) this.checkForWallet()
}
processPluginDeepLink = (parsedUrl: Object) => {
if (parsedUrl.pathname.includes('simplex')) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where do we take the pathname and inject it into the plugin? How do they know what the URI parameters are?

@swansontec swansontec merged commit df469a5 into develop Apr 8, 2019
@swansontec swansontec deleted the allen/deepLinkingSimplex branch April 8, 2019 19:48
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

Successfully merging this pull request may close these issues.

2 participants