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

integrating meet.one wallet #1

Open
gaboesquivel opened this issue Jul 19, 2019 · 2 comments
Open

integrating meet.one wallet #1

gaboesquivel opened this issue Jul 19, 2019 · 2 comments

Comments

@gaboesquivel
Copy link

Hi, I'm adding meet one the supported wallets on a web app. Is it posible to load an app on meet.one from the browser ?
On token pocket you can use this protocol https://git.io/fjMOQ I want to accomplish the same with Meet.one. I would also like to switch to fullscreen on load?

@wujunchuan
Copy link
Contributor

wujunchuan commented Jul 23, 2019

I'm sorry if I've kept you waiting.

load an app on meet.one from the browser

We have already supported invoke wallet in external browser(not in dapps browsers in MEET.ONE client)

<a href="meetone://app/webview?params=JTdCJTIydXJsJTIyJTNBJTIyaHR0cHMlM0ElMkYlMkZtZWV0Lm9uZSUyRiUyMiUyQyUyMnRpdGxlJTIyJTNBJTIyJUU3JUIxJUIzJUU3JTg5JUI5JUU3JThFJThCJTIyJTdE&callbackId=">Open url with MEETONE</a>

But the scheme maybe unreadable, so we add one parameter external to invoke wallet, and wallet.isExternal is detected wheter in external browsers or not. (meet-js-sdk version >0.1.1 avaliable).

Supported schemes are wallet.webview() and wallet.navigate()

For example :

testWebview = async e => {
  executing(e)
  try {
    let result = await wallet.webview(
      'https://meet.one?nav_alpha=1',
      // if true, invoke the wallet client and execute scheme, if false, will execute scheme only
      wallet.isExternal
    )
    if (result.code === 0) {
      success(e)
    } else {
      failed(e)
    }
    return true
  } catch (error) {
    failed(e)
  }
}

using meet-js-sdk to control fullscreen

No yet, we haven't supported now, but this Library will update continuously, some new schemes will update next version(control fullscreen need wallet client support). If we support this feature, I will mention you in this issue.

@gaboesquivel
Copy link
Author

Great, thanks

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

2 participants