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

TPListener没有回调 #48

Open
langxing opened this issue Dec 19, 2024 · 1 comment
Open

TPListener没有回调 #48

langxing opened this issue Dec 19, 2024 · 1 comment

Comments

@langxing
Copy link

val authorize = Authorize()
val blockchains = ArrayList()
blockchains.add(Blockchain("ethereum", "1"))
authorize.blockchains = blockchains
authorize.action = "login"
authorize.actionId = System.currentTimeMillis().toString()
authorize.protocol = "TokenPocket"
authorize.version = "v1.0"
authorize.dappName = "youwin"
authorize.memo = "demo"
TPManager.getInstance().authorize(act, authorize, object : TPListener {
override fun onSuccess(s: String?) {
Log.d("tp_wallet", s.orEmpty())
}

        override fun onError(s: String?) {
            Log.d("tp_wallet", s.orEmpty())
        }

        override fun onCancel(s: String?) {
            Log.d("tp_wallet", s.orEmpty())
        }

    })

这段代码,调起TP钱包授权后,没有回调TPListener是为什么呢?

@Developmc
Copy link
Contributor

1.用的sdk版本是多少?
2.现在最新版sdk是“1.2.1”,不需要手动设置version和action

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

2 participants