Google authentication sometime fails error code 10

Hi there im currenty using google plugin for authentication. It was working perfectly until i tried adding google fcm but it failed so after adding firebase to the project it started behaving abnormally now the problem is it worked perfectly in livereload to device but when creating a production or releasing build it didn’t work
It is throwing error 10
I tried other methods but they didn’t work
What should i do ??