chain-desktop-wallet
chain-desktop-wallet copied to clipboard
Research: In App Browser support
Purpose
Support in app browser, facilitate for DApp support
Study Items
BrowserWindow: A new separate window pop up which the Desktop Wallet could still be accessible.
- We may also insert BrowserView (potentially a transaction confirmation pop up) to ask for tx confirmation.
With BrowserView: It is a sub view insert inside a parent BrowserWindow, where a part of / the whole Desktop Wallet will be covered up.
- No separate window.
- Need to investigate whether it’s possible to add sub-BrowserView inside a parent BrowserView for the tx signature confirmation
IFRAME It is the most easiest way to implement.
- Can act like a react component
- Events within the iframe website is not trackable, except with hard-coded component id
Stuck
- [ ] If we have to insert a pop up which could potentially confirm tx/ add additional navigation UI, we have to import another set of html file & compiled js for this particular BrowserWindow / BrowserView. Currently not able to webpack compile from 2 entry points & output 2 html files at 2 directories (https://webpack.js.org/concepts/entry-points/)