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

[bug] Why don't events trigger in mobile browsers? #3270

Open
gwz-365461760 opened this issue Nov 19, 2024 · 0 comments
Open

[bug] Why don't events trigger in mobile browsers? #3270

gwz-365461760 opened this issue Nov 19, 2024 · 0 comments
Labels
bug Something isn't working needs review

Comments

@gwz-365461760
Copy link

Link to minimal reproducible example

Intranet test

Summary

Why don't events trigger in mobile browsers? For example, how to trigger events when returning to the web page after successfully connecting to metamask?

`const appKit = createAppKit({
adapters: [wagmiAdapter],
projectId,
metadata: {...},
features: {
email: false,
socials: false,
emailShowWallets: false,
},
networks,
themeMode: 'light'
});

    modal.value = appKit;

    appKit.subscribeEvents((event) => {
      let CONNECT_SUCCESS = event.data.event
      if (CONNECT_SUCCESS === "CONNECT_SUCCESS") {
        console.log("CONNECT_SUCCESS")
      }


      if ((CONNECT_SUCCESS === "MODAL_CLOSE" || CONNECT_SUCCESS === "CONNECT_ERROR") && isConnectWallet.value) {
        console.log("MODAL_CLOSE")
      }

    })`

List of related npm package versions

`
"@reown/appkit": "^1.3.2",
"@reown/appkit-adapter-wagmi": "^1.3.2",
"@tanstack/vue-query": "^5.59.20",
"@wagmi/vue": "^0.0.63",
"bootstrap": "^5.3.3",
"buffer": "^6.0.3",
"core-js": "^3.8.3",
"crypto": "^1.0.1",
"ethers": "5.7.2",
"lodash-es": "^4.17.21",
"viem": "^2.21.45",
"vue": "^3.2.13",
"vue-i18n": "^10.0.0",
"vue-router": "^4.4.5",
"vuex": "^4.1.0"

`

@gwz-365461760 gwz-365461760 added bug Something isn't working needs review labels Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs review
Projects
None yet
Development

No branches or pull requests

1 participant