“Unregistered Android application” text is displayed in User profile info permission dialog

徘徊边缘 提交于 2019-12-10 17:29:10

问题


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

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