question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No way to delete/unmap an App

See original GitHub issue

Hi. Since there is no way to create an issue in the Firebase Admin SDK private repository, I decided that this was the best place to do it (if I am wrong, please, let me know).

The following exception is thrown whenever initializing an app with the same name twice.

java.lang.IllegalStateException: FirebaseApp name {appName} already exists!

I understand one should not initialize the same app twice. But there should be a way to update the app settings/options/credentials/etc.

The class com.google.firebase.FirebaseApp statically maps apps to their names, and there is no way to unmap an app. Internally, the class has a delete method, which probably does what is needed in order to initialize another app using new com.google.firebase.FirebaseOptions using a previous name, but the method is not visible. Extending com.google.firebase.FirebaseApp is not an option either, hence its constructor is private.

The only way to re-create an app is killing the JVM and starting the process again, which frees the static instances from memory. But that implies killing our backend servers aswell.

Please, consider making delete method public if that would solve this issue.

Thanks.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
samtsterncommented, Jun 4, 2019

This was fixed a long time ago by @hiranya911: https://github.com/firebase/firebase-admin-java/pull/5

If you’re still having issues, file them on the firebase-admin-java repository. Thanks for the reminder @djejaquino

3reactions
FunkyLambdacommented, Dec 17, 2018

What’s the status on this? Really need this to happen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Delete, disable & manage unused apps on Android
Some of these steps work only on Android 13 and up. Learn how to check your Android version. Delete apps that you installed....
Read more >
How to remove application insights monitoring (unmap) of ...
Now I have to remove application insight monitoring (unmap) for that web app from azure. I am not getting option to unmap application...
Read more >
unmap-route - Cloud Foundry CLI Reference Guide
unmap -route - Remove a url route from an app. USAGE. Unmap an HTTP route: cf unmap-route APP_NAME DOMAIN [--hostname HOSTNAME] [--path PATH]...
Read more >
Delete apps on your iPhone, iPad, and iPod touch
Touch and hold the app. Tap Remove App Remove App icon . An iPhone screen showing the menu that appears when you touch...
Read more >
How to delete a mapped network drive from Windows (5 ways)
In case you're using Windows 11, select the network location(s) you want to unmap, and then press Delete on your keyboard. Alternatively, you ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found