Firebase Authentication with smartphone

Could someone tell me if phone authentication only works if the app is registered in the Playstore?
I ask because I did the whole process just by exporting the apk. When I enter the area code of my city + the phone number it does not send the verification code.

Because when trying to log in, this error occurs:

“failed resolution of: Lcom/google/android/gms/safetynet/SafetyNet;”

Protip: search the community

https://community.kodular.io/search?context=topic&context_id=287197&q=Lcom%2Fgoogle%2Fandroid%2Fgms%2Fsafetynet%2FSafetyNet&skip_context=true

Taifun