firebase / firebase-android-sdk

Firebase Android SDK
https://firebase.google.com
Apache License 2.0
2.25k stars 569 forks source link

Allow override the default *.googleapis.com hostname when calling API #905

Open chandlerding opened 4 years ago

chandlerding commented 4 years ago

What feature would you like to add

Allow override the default .googleapis.com hostname when calling API. For well-know reason the .googleapis.com is inaccessible in some place, however developers can host reverse proxy under their own domain name to workaround that.

How would you use it?

Add a method to allow developer customize the hostname when calling firebase apis that are hosted under googleapis.com. e.g. firebasestorage.googleapis.com

wilhuff commented 4 years ago

This already exists: https://firebase.google.com/docs/reference/ios/firebasefirestore/api/reference/Classes/FIRFirestoreSettings#host

Cheers!

chandlerding commented 4 years ago

What about firebase-storage api?

wilhuff commented 4 years ago

Apologies--I read this after your comment on firebase/firebase-ios-sdk#1300, which was a Firestore specific issue.