The text "Unregistered Android application" is displayed in the dialog box for resolving user profile information

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.

+4
source share
1 answer

If the user uses your application through the APK, a request dialog box allows UNRECT ANDROID APPLICATION to be shown. Its best to publish your application in the play store to avoid this.

+1
source

All Articles