connect icon indicating copy to clipboard operation
connect copied to clipboard

No transaction pop-up on pera mobile App

Open HamzaShah11 opened this issue 1 year ago • 2 comments

I am trying to connect with mobile app by scaning Qr code and then to sign transaction via perawallet on Phone but After scaing QR code I get pop up to connect and it does connected there is no problem with connectivity. However when I sign transaction I get nothing on mobile it doesnt show any pop up on mobile to sign the transaction. On my console i get this error "err Error: PeraWalletConnect was not initialized correctly." But everything works when I sign transaction on browser with the same code.

HamzaShah11 avatar Mar 27 '23 06:03 HamzaShah11

I had a similar problem. Try initializing it once in a file, then exporting the pera instance.

// inside pera.ts
import {PeraWalletConnect} from "@perawallet/connect";

const pera = new PeraWalletConnect();

export default pera;



and 

// inside component/page
import pera from "../pera.ts";

// ... other actions
const signedTxns = await pera.signTransaction([txnGroup])
// ... other actions

gessic-apps avatar Mar 29 '23 15:03 gessic-apps

the above solution doesn't work for me. I implemented this way but I'm still seeing the above issue when in the Pera mobile app browser. I go to sign a txn and the pop-up doesn't appear. Works on Web and from Safari but not the Pera browser.

1forh avatar Apr 01 '23 15:04 1forh