【发布时间】:2021-03-14 23:19:39
【问题描述】:
目前我使用functions.useFunctionsEmulator(origin: "http://localhost:5001") 为Functions.functions() 的每次调用更新模拟器链接,这意味着我可能会引入错误。有没有办法将此设置全局应用于所有 firebase Functions.functions() 调用?
let functions = Functions.functions()
// Uncomment to hit local emulator.
// functions.useFunctionsEmulator(origin: "http://localhost:5001")
functions.httpsCallable("acceptParticipantRequest")
.call([
// params
]) { (result, error) in
// handle results
}
【问题讨论】:
标签: ios swift iphone firebase google-cloud-functions