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

Android App with dApp Connector and in-app dApp Browser #557

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

vineeth2941
Copy link

Created a Nami Wallet Android App with dApp Connector based on Android Intents using Capacitor JS

@alessandrokonrad
Copy link
Contributor

Oh wow, didn't expect such a PR hahaha. I'm gonna check that out!

@alessandrokonrad
Copy link
Contributor

@vineeth2941 was able to successfully build. How does the communication between the app and the browser work exactly? I see it works with Intents somehow, but how do I call that from the website?

@vineeth2941
Copy link
Author

@alessandrokonrad Intents work only for App to App communication, We need to build a dApp browser if it has to be between a website and the wallet app. For testing, you can use this Android-based sample dApp: https://github.com/vineeth2941/nami-client-android

@alessandrokonrad
Copy link
Contributor

@alessandrokonrad Intents work only for App to App communication, We need to build a dApp browser if it has to be between a website and the wallet app. For testing, you can use this Android-based sample dApp: https://github.com/vineeth2941/nami-client-android

Does the browser need to be built from scratch or is it possible to embed the exisiting chrome browser?

@vineeth2941
Copy link
Author

Most probably we can embed the existing one as webview but some configuration might be needed to wrap the CIP-30 JS API to the Android Intent API

@vineeth2941
Copy link
Author

Most probably we can embed the existing one as webview but some configuration might be needed to wrap the CIP-30 JS API to the Android Intent API

Reference Link: https://developer.android.com/guide/webapps/webview#BindingJavaScript

@vineeth2941
Copy link
Author

vineeth2941 commented May 24, 2022

VID-20220520-WA0001.1.mp4
NamiDAppBrowser.1.mp4

image
image
image

@vineeth2941 vineeth2941 changed the title Android App with dApp Connector Android App with dApp Connector and in-app dApp Browser Jun 2, 2022
@MartinSchere
Copy link

What? This is nice haha

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.

3 participants