Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No transaction pop-up on pera mobile App #124

Open
HamzaShah11 opened this issue Mar 27, 2023 · 2 comments
Open

No transaction pop-up on pera mobile App #124

HamzaShah11 opened this issue Mar 27, 2023 · 2 comments

Comments

@HamzaShah11
Copy link

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.

@gessic-apps
Copy link

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

@1forh
Copy link

1forh commented Apr 1, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants