I think there is a problem with moralis walletconnect or maybe am not doing something right

Hi So I did the Moralis.Execute Funtion. Its wokring in the desktop but again in mobile. Its not waiting for the callback. Any suggestions ?

executeFunction now also has a awaitReceipt param so that you can use it with events when you set it to false:

      .on('transactionHash', hash => {
     
      })
      .on('receipt', receipt => {
     
      })
      .on('confirmation', (confirmationNumber, receipt) => {
     
      })
      .on('error', error => {
     
      });

but in mobile browser it doesnt continues back from the transaction.

const options = {
          contractAddress: MARKETPLACE_CONTRACT_ADDRESS,
          functionName: "redeemOffer",
          abi: Kraft_MarketPlace,
          params: {
            _offer: carddescription.hash,
            _amount: quantityOfNFTS,
            _signature: carddescription.signature
          },
          msgValue: carddescription.price * quantityOfNFTS,
          awaitReceipt: false
        }

        const tx = await Moralis.executeFunction(options);
        tx.on("transactionHash", (hash) => { })
          .on("receipt", (receipt) => { })
          .on("confirmation", (confirmationNumber, receipt) => {
            console.log(carddescription)
            debugger
            var objectId = "";
            var tokenid1 = "";})
 .on('error', error => {
     
      });

So generally im using it like this here. Working perfectly in desktop but in mobile browser not getting back to browser to process ahead

Where should I exactly write the code which should be called after transaction is done? can you check this out and let me know if im doing anything wrong ?

if you write something on those two callbacks do you get anything?

I get response from both in desktop. Where as in mobile get only transactionHash alert. but not the receipt.

Thanks. ITs working in receipt. Thankyou.Do you have any Idea how can I implement web3.eth.personal.sign ? in moralis wallet Connect ?

Not sure on what are you referring with implementing web3.eth.personal.sign, what part doesn’t work?

afterSignature. callback issues

it looks like Moralis SDK also uses web3.eth.personal.sign for authentication:
const signature = await web3.eth.personal.sign(data, ethAddress, '');
if it works there then it should work in other place too