firebase / firebase-android-sdk

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

Adding API to enable Firebase to use managed network #5138

Open afaucogney opened 1 year ago

afaucogney commented 1 year ago

What feature would you like to see?

We want to be able to specify the NetworkCapabilities of the network that will be used by Firebase Android Sdk (in our case Storage, but other will come) in order to access to OEM managed network

Today, there is no way to use Firebase Storage in Automotive for OEM, means the network that is tagged with capabilities OEM_PAID/OEM_PRIVATE) that is different from default INTERNET.

Android 12 Branch [NetworkCapabilities.java] (https://cs.android.com/android/platform/superproject/+/android-12.1.0_r27:/packages/modules/Connectivity/core/java/android/net/NetworkCapabilities.java)

Android Master Branch [NetworkCapabilities.java] https://cs.android.com/android/platform/superproject/+/master:/packages/modules/Connectivity/framework-t/src/android/net/NetworkIdentity.java;bpv=1;bpt=1

About the API, I do not know the best way, but the topic is to access to the object NetworkRequest

How would you use it?

PS: buganizer has been fulfilled for this purpose : https://partnerissuetracker.corp.google.com/issues/289915187

google-oss-bot commented 1 year ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.