I would like to give the user the option to select which Firebase Real-time database to use. Essentially I am using multiple Firebase databases in a single apk. As this happens in runtime I won’t be able to use the google-services.json file to connect to Firebase. I used this blog as reference but still couldn’t connect to the database .
Blog post - https://firebase.googleblog.com/2017/03/take-control-of-your-firebase-init-on.html?m=1
Is there a solution where I could connect to Firebase database in runtime.