alpha-wallet-android icon indicating copy to clipboard operation
alpha-wallet-android copied to clipboard

How to change the image and app name in the third party sites like rarible.com

Open GowthamParamasivam opened this issue 3 years ago • 5 comments

I would like to change the logo and app name in the third party sites after connecting to their site. When i clone the repo and customize the wallet code and connect in the 3rd party site, it still shows the alphawallet icon and name.

alphawallet

GowthamParamasivam avatar Sep 21 '22 06:09 GowthamParamasivam

Hi, you can search initWalletConnectPeerMeta in WalletConnectActivity.java, and change the WCPeerMeta construction params.

seabornlee avatar Sep 21 '22 07:09 seabornlee

Hi @seabornlee,

tried changing what you said, but still I could not see the change. I changed the params mentioned in this line.

Am I missing something here?

alphawallet-issue2

GowthamParamasivam avatar Sep 21 '22 13:09 GowthamParamasivam

Sorry, I found there is another place https://github.com/AlphaWallet/alpha-wallet-android/blob/2896aedfd5cf66dca5b5d323b1f9b1f48f95b574/app/src/main/java/com/alphawallet/app/walletconnect/entity/WCUtils.java#L37 Will remove this duplication.

seabornlee avatar Sep 21 '22 15:09 seabornlee

Hi @seabornlee, Changed in both the places but still i dont see any changes on the 3rd party sites, still it shows the logo and name as alpha wallet.

GowthamParamasivam avatar Sep 22 '22 12:09 GowthamParamasivam

Is this in the dapp browser and not through WalletConnect? If so, try exploring along this line too:

It could be because rarible.com is checking the isAlphaWallet flag against the provider we inject.

If so, we do this in the web3 provider (note that this is not in the AlphaWallet app repository) https://github.com/AlphaWallet/AlphaWallet-web3-provider/blob/9a4496d02b7ddb2f6307fd0510d8d7c9fcef9870/src/index.js#L51. I think AlphaWallet Android might be bundling this file directly so maybe isAlphaWallet = true is the bit to look for. You can verify by resetting it to false and see if that option goes away in rarible.com. If it does, unfortunately, it might be a hassle to get dapps to recognize is<my wallet name>.

hboon avatar Sep 23 '22 02:09 hboon