问题
I have integrated Google sign-in in my application. I am able to successfully login every time but when I have added new google account in the device and try to login with that, I see the attached pop up dialog. I don't understand why it says "Unregistered android application". How to register the application in that case?
Attached pop up 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 anyone please guide me how to register the app? Thanks, in advance.
回答1:
If the user is using your app via an APK, the permission request dialog with show UNREGISTERED ANDROID APPLICATION. Its better to publish your app on play store to avoid this
来源:https://stackoverflow.com/questions/32328664/unregistered-android-application-text-is-displayed-in-user-profile-info-permis