Linkdin登录集成中无法识别包

时间:2019-07-12 10:15:10

标签: android authentication linkedin

不久前,我在应用程序中集成了Linkedin Login,它可以正常工作,但是现在却出现auth错误,

  

传入的移动标识符无效“ com.mypackage”

 if (LISessionManager.getInstance(this).getSession().isValid()) {
        fetchBasicProfileData();
    } else {
        LISessionManager.getInstance(getApplicationContext()).init(this, buildScope(), new AuthListener() {
            public void onAuthSuccess() {
                LoginActivity.this.fetchBasicProfileData();
            }

            public void onAuthError(LIAuthError lIAuthError) {
                String str = LoginActivity.TAG;
                StringBuilder stringBuilder = new StringBuilder();
                stringBuilder.append("Auth Error :");
                stringBuilder.append(lIAuthError.toString());
                Log.e(str, stringBuilder.toString());
            }
        }, true);
    }

protected void onActivityResult(int i, int i2, Intent intent) {
    super.onActivityResult(i, i2, intent);        
    LISessionManager.getInstance(getApplicationContext()).onActivityResult(this, i, i2, intent);
    DeepLinkHelper.getInstance().onActivityResult(this, i, i2, intent);
}

请为我建议解决方案! 预先感谢

0 个答案:

没有答案