Open ghost opened 2 years ago
Any updates?
Check out signMessage in android
ExampleApplication.session.performMethodCall(Session.MethodCall.Custom(System.currentTimeMillis(),"personal_sign", arrayListOf("test sign",session.approvedAccounts()!!.first())), ::handleResponse) val i = Intent(Intent.ACTION_VIEW) i.data = Uri.parse("wc:") startActivity(i)
ExampleApplication.session.performMethodCall(Session.MethodCall.Custom(System.currentTimeMillis(),"personal_sign", arrayListOf("test sign",session.approvedAccounts()!!.first())), ::handleResponse) val i = Intent(Intent.ACTION_VIEW) i.data = Uri.parse("wc:") startActivity(i)
I get no response with this method,This is the code I wrote
val from = ExampleApplication.session.approvedAccounts()?.first() ?: return Log.i(TAG, "---click-->$from") ExampleApplication.session.performMethodCall( Session.MethodCall.Custom( System.currentTimeMillis(), "personal_sign", arrayListOf( "0xdeadbeaf", from ) ) ) { response -> Log.d(TAG, "------>${response.result}--->${response.error}")
}
No response at all
figure it out? callback doesn't fire