Firebase phone authentication in android - same code doesn't work on different machines

独自空忆成欢 提交于 2019-12-11 04:23:56

问题


I have integrated Firebase phone authentication in my android project.

For this I have followed all the steps given in this link.

All works fine on my machine, Also I pushed this code to git.

Now when another user pulls that code, it doesn't work on his machine.

Error he is getting is -

com.google.firebase.FirebaseException: An internal error has occurred. [ INVALID_APP_CREDENTIAL:App validation failed ]

I have searhed for this error, but everywhere I found is -

  1. Put your SHA1 key

  2. Enable "phone authentication" in authentication tab in your firebase project.

But I have already done that and all works fine on my machine. But doesn't work on another user's machine. Please help me.

Thanks in advance!


回答1:


Perhaps, you should add the SHA1 debug certificate keys of all your team members from git manually unless it's a released build. You can add as many debug SHA-1 keys as you want in the Project Settings from firebase console for every member's development machines.

Alternative: Share your keystore file to all of them.



来源:https://stackoverflow.com/questions/45561231/firebase-phone-authentication-in-android-same-code-doesnt-work-on-different-m

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!