【发布时间】:2021-10-02 15:03:12
【问题描述】:
Android 中的 Firebase 可调用函数没有返回 JSON 响应,而是返回 Hashmap<String, Object>,它无法转换为 JSONObject。
如何获取云函数返回的JSON对象?
例如我在云函数中返回这个 JSON,我需要这个 JSON 在 android 可调用函数中。
return ({
status: 'failed',
message: 'No error (00)',
data: {}
});
【问题讨论】:
标签: android firebase google-cloud-functions