Firebase phone authentication doesn't work on release


I have made a ionic v4 project and i have integrated firebase phone authentication.
When i run the project on a device everithing works fine but if i build the project and i upload the apk on play console for testing the authentication doesn’t work any more. Aparently firebase can’t find the signature. i have the google-service.json on android folder and i even signed the app with the same cert before put it on the store.
Can someone help me please?