Closed hermitdemschoenenleben closed 3 years ago
ok, I found the problem: it is not caused by capacitor-firebase-auth (sorry for the issue)
For some reason, google-services.json did not include my play store signing SHA1 key, despite it being present in firebase admin console. Solution: I removed the SHA1 key and added it again... Afterwards, google-services.json included my release SHA1 and phone auth works even on lineageos.
Apparently SHA256 is required for phone verification using safetynet which works on standard androids, and SHA1 is only required for the recaptcha flow which is required on non-standard androids. This explains why it worked for the vast majority of users.
first of all: thanks for this great plugin!
I'm using it for an app that now has a few thousands users and in principle everything works fine. I do receive some bug reports of users not being able to login, though, and it turns out that they are all using custom Android ROMs (mainly lineageos).
When inspecting the logcat of a lineageos device, I found these lines:
In order to fix the problem, I
but the problem persists. Do you have any ideas on what may be causing this or how to fix this issue?
(I also asked a question at stackoverflow, but on answer so far: https://stackoverflow.com/questions/67704160/firebase-phone-auth-doesnt-work-on-lineageos )