Hi I am using wallet connect to sign in, it works as expected on desktops, on mobile ios - when i sign the message and come back to browser - it shows me trust wallet page to try opening in app. Check attachment. When i manually go back to my application page, i see i am logged in but my issue is why is it taking my to trustwallet page.
It looks like the problem is on your side.
I just logged into a test site using WalletConnect and everything is working correctly.
Can you try to log in with another mobile phone?
It is a problem! Code is normal -
I mean the problem is not in your code, but is in your phone
I tried in different phone as well. It is same! Ios - chrome - you can try it live - try to test on scamornot.io
This is strange…
On mobile phone it should be like in 1st pic:
But 2nd is your site
Please share the login code
Have you changed Moralis.Web3.authenticate
to Moralis.authenticate
?
This is the code
Ofcourse i added the new way of custom message as mentioned in the previous ticket. Rest of the code is same.
Moralis.authenticate({
provider: walletProvider,
chainId: 56
}).then(function (user) {
authenticate(user.id, user.get('ethAddress')) // what does this code do?
});
Yes it does work correctly but they don’t do any custom message sign in.
That code makes an entry in my database and refresh the page.
This code is working perfectly fine if you select metamask from walletconnect instead of trustwallet. So the issue is with trust wallet sign in! The extra code doesn’t matter because treat that as refreshing on callback!
I’ve just tested it on local server with walletconnect+trustwallet on Android. Everything works correctly.
Maybe you should update your trustwallet version?
Trustwallet version is latest, ios version is latest!
I already mentioned that the problem is in iOS, not in android!