DA0-DA0 / docs

DAO DAO documentation.
https://docs.daodao.zone
12 stars 14 forks source link

How to connect mobile keplr wallet? #46

Closed sheriff-rango closed 2 years ago

sheriff-rango commented 2 years ago

I am building a website working on the Juno chain that connects Keplr wallet. I have connected the Keplr wallet on the desktop version and want to connect Mobile Keplr Wallet. I tried it using cosmodal but failed and found that https://daodao.zone/starred works well. I would be very thankful if you could share the code for connecting Mobile Keplr Wallet.

NoahSaso commented 2 years ago

I am building a website working on the Juno chain that connects Keplr wallet. I have connected the Keplr wallet on the desktop version and want to connect Mobile Keplr Wallet. I tried it using cosmodal but failed and found that https://daodao.zone/starred works well. I would be very thankful if you could share the code for connecting Mobile Keplr Wallet.

Take a look at https://github.com/NoahSaso/cosmodal

I forked cosmodal and made some changes because it didn't work quite right for me either. You can use it right now via the npm package @noahsaso/cosmodal, but I have not put a lot of time into cleaning it up yet! I'll be making some improvements in the coming week or two to improve the API and integrate the CW client so it is more general & useful :)

sheriff-rango commented 2 years ago

I have looked at that and actually used most of those codes there for my project. When I try to connect the mobile keplr wallet, the wallet app runs but I can't find the request for connecting. I am not sure why this happens and I would like you to help me with solving this issue if possible. Have you ever met such this issue?

sheriff-rango commented 2 years ago

I have got this issue with @noahsaso/cosmodal@0.4.2 image

How can I fix this issue?

NoahSaso commented 2 years ago

I have got this issue with @noahsaso/cosmodal@0.4.2 image

How can I fix this issue?

Please try installing the latest @noahsaso/cosmodal v0.5.0 and following the updated instructions in the README at https://github.com/NoahSaso/cosmodal or checking out the example in that repo.

If you still can't get it to work, I can help you out in the DAO DAO Discord :) https://discord.gg/sAaGuyW3D2

sheriff-rango commented 2 years ago

Thanks for your help, @NoahSaso. I would like to know if there is some way to auto-connect when the page refreshes.

NoahSaso commented 2 years ago

Thanks for your help, @NoahSaso.

I would like to know if there is some way to auto-connect when the page refreshes.

Yep! If you set localStorageKey on the provider, it will enable auto-connect.

sheriff-rango commented 2 years ago

Great! Awesome.

sheriff-rango commented 2 years ago

Can I use @noahsaso/cosmodal in Angular13?