I've set up the most basic implementation of firebase auth login with email and password.
firebase.auth().signInWithEmailAndPassword(email, password).then(() => {
console.log('Logged in')
window.location.href = "./home.html"
}).catch(function (error) {
console.log(error)
});
For some reason, on iOS, the login process sometimes gets stuck waiting for the promise of signInWithEmailAndPassword() to resolve. I don't get any error message.
The only way to re-enable the login mechanism is to clear the browser cache.
Is this a known problem? I've been experiencing this problem for my last two apps over the last year.
Edit: After further trial and error I found out that the problem usually happens after being logged in, letting the iPhone go to sleep, waking it back up, and then logging out. Then the same problem also happens for the signOut() function.