Nativescript-plugin-firebase: Firebase functions httpsCallable region support

Created on 13 Sep 2019  路  8Comments  路  Source: EddyVerbruggen/nativescript-plugin-firebase

Hi,

I've created some httpsCallable backend code in Firebase Cloud Functions using the default us-central1 region and I've tried calling them without a problem.

However since my database lives in asia-east2 region, I need to move the functions to the same region to reduce costs. This is described here in the documents.

How do I set the region of a httpsCallable function?

Thanks in advance!

Android Functions enhancement iOS

All 8 comments

Hi, good question, but you currently can't. It's a simple change though so a nice one to have in an upcoming version. No idea when exactly.

Can I help? I am interested if you can point me the direction 馃槃

Thanks for offering. The actual change is very quickly implemented, but I need to do a few other tasks before I can release a new version of this plugin.

The code required is actually on the page you linked to and it needs to be incorporated in these files.

Ah I see.. Thanks alot for the pointers. Of course I understand, this is a huge plugin. Not to mention other plugins that you maintain..

Thanks a lot again for the super quick reply, the plug-in is awesome!

Hi @EddyVerbruggen, I've created a fix here. Is that code satisfactory?

I haven't been able to test it on iOS, somehow even with vanilla v9.1.1 I can't call any httpsCallable in my iOS emulator, but I think the problem is on the configuration on my side. Works well in Android though.

Let me know if the code is ok, and I will create a pull request.

Very cool, nice work! Please send a PR :)

Will do 馃憣馃徎馃榿

Awesomenesss

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NickIliev picture NickIliev  路  3Comments

phatakrajan picture phatakrajan  路  4Comments

SBD580 picture SBD580  路  3Comments

dopefatimah picture dopefatimah  路  3Comments

ButterMeWaffle picture ButterMeWaffle  路  4Comments