I am trying to implement google sign_in in my app. I have configured the OAuth consent screen and have generated the client id as well. I have copied the code for google sign-in from the official documentation. but it is working fine in one app but not in the other. I don't know whats the issue either is in code or while configuring the google consent screen. in one app it is giving me the error "user canceled " in on activity result. can anyone guide me?. thanks in advance.
CodePudding user response:
I hope in another device where this code is not working may not have any gmail id registered in that device.
CodePudding user response:
I have found the solution to my problem. official documentation states that you should copy your package name from the manifest file. but if your package name and application id in the build.Gradle file are different then you have to use that application id instead of package name from manifest file
