I have enabled Google login in my application. I can successfully log in every time, but when I added a new google account to the device and try to log in with it, I see an attached pop-up dialog. I don’t understand why he says “Unregistered Android Application”. How to register the application in this case?
Nested Popup Dialog: Attached Image For Reference
I am using the following code:
try { String token = GoogleAuthUtil.getToken(mActivity, mEmail, "oauth2:https://www.googleapis.com/auth/userinfo.profile"); return token; } catch (UserRecoverableAuthException userRecoverableException) { mActivity.startActivityForResult(userRecoverableException.getIntent(), USER_RECOVERABLE_AUTH); } catch (Exception e) { e.printStackTrace(); }
Can someone tell me how to register an application? Thanks in advance.
source share