Connect to firebase emulator to call a function from the iOS side
Feb 23, 2021
Web
exports.generateSound = functions.https.onCall((context) => {
return new Promise((resolve, reject) => {
resolve('{"message": "Hello from Firebase!"}')
})
})
iOS
Here is a caution point
You have to use iOS Simulator, not the device. because you had set the origin ‘localhost’