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

Android 原生通过DCUniMPJSCallback的 invoke 方法传递消息给 uniapp,uniapp 偶尔收不到传过去的消息 #152

Open
wl386123298 opened this issue Aug 8, 2024 · 0 comments

Comments

@wl386123298
Copy link

wl386123298 commented Aug 8, 2024

Android 原生通过DCUniMPJSCallback的 invoke 方法传递消息给 uniapp,uniapp 偶尔收不到传过去的消息,需要重新打开 app后就可以收到了。

 val data = JSONObject()
 data["code"] = 0
data["message"] = "success"
data["data"] = JSONObject.parseObject(recordScoreResult, JSONObject::class.java)
 data["audioUrl"] = recordOssUrl
 //回传数据给小程序
mCallback?.invoke(data)
@zhetengbiji zhetengbiji transferred this issue from dcloudio/uni-app Aug 8, 2024
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

1 participant