box-android-sdk
box-android-sdk copied to clipboard
在授权成功后,authenticate方法设置的OnCompletedListener未正常回调
在账户登录并点击授权按钮后,此时界面出现“正在验证...”对话框,对话框消失时,逻辑上授权已完成,但设置的OnCompletedListener的onCompleted方法未被调用。 使用场景:
new BoxSession(activity).authenticate(activity, listener);
若在此时杀掉并重启进程再重新创建BoxSession并调用authenticate,则此时会正常回调OnCompletedListener的onCompleted方法。 若不杀死进程,就直接重新创建BoxSession并调用authenticate,无任何反应,从authenticate返回的Task也无法做出有效判断。 因此无法绕过也无解决方案。
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.
@AlexMofer Is it the same multi-process application as in your other issue #387?
@lukasvalkovic 是的,是相同的应用,但是是不同的问题。
同样还有个问题,在进入授权页面时,此时不做任何登录操作,而直接按返回键,同样也不进行回调,按理说这种情况应该算是用户主动取消登录,该情况不做回调也同样无法检测到。