Connect to firebase emulator to call a function from the iOS side

Fredric Cliver
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’

--

--

Fredric Cliver

Majored in Physics, self-taught and worked in the IT industry as a Dev/Design/Planning for 11 years. And I had run my Startup for 3 years. I fancy a ☔️ 🇬🇧