Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在授权成功后,authenticate方法设置的OnCompletedListener未正常回调 #388

Open
AlexMofer opened this issue Feb 16, 2019 · 3 comments

Comments

@AlexMofer
Copy link

AlexMofer commented Feb 16, 2019

在账户登录并点击授权按钮后,此时界面出现“正在验证...”对话框,对话框消失时,逻辑上授权已完成,但设置的OnCompletedListener的onCompleted方法未被调用。
使用场景:

new BoxSession(activity).authenticate(activity, listener);

若在此时杀掉并重启进程再重新创建BoxSession并调用authenticate,则此时会正常回调OnCompletedListener的onCompleted方法。
若不杀死进程,就直接重新创建BoxSession并调用authenticate,无任何反应,从authenticate返回的Task也无法做出有效判断。
因此无法绕过也无解决方案。

@nidoran
Copy link
Contributor

nidoran commented Mar 20, 2019

From Google Translate:

Title: After the authorization is successful, the OnCompletedListener set by the authenticate method is not normal callback #388

After the account is logged in and the authorization button is clicked, the “Verifying...” dialog box appears. When the dialog box disappears, the logical authorization is completed, but the onCompleted method of the set OnCompletedListener is not called.
scenes to be used:

new BoxSession(activity).authenticate(activity, listener);

If you kill and restart the process at this time and then re-create the BoxSession and call authenticate, then the OnCompleted method of OnCompletedListener will be called back normally.
If you don't kill the process, you can directly re-create the BoxSession and call the authenticate, no response, the Task returned from the authenticate can not make a valid judgment.
Therefore, there is no way to bypass or solve the problem.

@lukasvalkovic
Copy link
Contributor

@AlexMofer Is it the same multi-process application as in your other issue #387?

@AlexMofer
Copy link
Author

@lukasvalkovic 是的,是相同的应用,但是是不同的问题。
同样还有个问题,在进入授权页面时,此时不做任何登录操作,而直接按返回键,同样也不进行回调,按理说这种情况应该算是用户主动取消登录,该情况不做回调也同样无法检测到。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants