I'm developing a Ionic/React/Capacitor app.
I'm calling firebase.auth().setPersistence(firebase.auth.Auth.Persistence.LOCAL) when the app starts.
Everything works fine in the browser. But when deployed, the auth state isn't persisted when I restart the app. I first thought Capacitor might not support IndexedDB/Local Storage but even after installing Microsoft's IndexedDB Cordova plugin, it still doesn't work (I'm assuming that plugin is compatible with capacitor).
Is there any way to get this working or will I have to persist the auth state myself?