-
Notifications
You must be signed in to change notification settings - Fork 108
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
Only the original thread that created a view hierarchy can touch its views. #1076
Comments
Hi @Eqbalazar thank you for reporting this issue. This is not clear which call did you made and get this error. The stacktrace here only shows CalledFromWrongThreadException is thrown which is from Android. Could you attach your code where the adal auth call is made? Is it from main thread or background thread? Please attach the complete adal logs as well. |
Hi @heidijinxujia , FileTokenCache _FileTokenCacheStore = new FileTokenCache(getApplicationContext(), I have to do refresh token in back ground in order to prevent loging again by users. |
Thank you for the quick reply. @Eqbalazar Which adal API you are calling when trying to refresh the token? |
Hi @heidijinxujia , |
Hi @Eqbalazar The ADAL API is referring to the function you called in your client app code, not the version number. For exception, are you making an acquireTokenCall? If so, which function are you calling? Thanks. |
Close the issue because we have not got the reply from customer for more than two weeks. Please feel free to reopen it if you got further question. Thanks. |
I have the same issue. AuthenticationCallback seem to invoked on a background thread in Version 1.13.3. In Version 1.3.0 the callback was executed on the main thread. Is this the expected behaviour in the new version? |
Hello @MoBo @Eqbalazar -- From my testing, I can confirm this as an unintended change that occurred between versions Reopening this issue, as it's now confirmed. |
@nazukj Just putting this on your radar: we can follow-up regarding next steps, milestone, etc. /cc @heidijinxujia @addev-ashish @piqiums |
@Eqbalazar, please look at Line 878 in 01aae1f
In the 'AuthenticationCallback callbackExt', in the method 'onError' & "onSuccess", please update UI on UI Thread via "runOnUiThread". Please don't suppose these 2 callback methods would definitely be called on UI thread. https://developer.android.com/reference/android/app/Activity.html#runOnUiThread(java.lang.Runnable) The "AcquireTokenRequest" should not run on UI thread since it's not UI related, and we moved it to a non-UI thread to keep the UI thread responsive to the user input. |
@Eqbalazar , is your app released or still in development? thanks |
Hi @piqiums , I tested in Development , I am using 1.13.1 on release . |
@Eqbalazar, is this working for you with Ping's suggestion? |
Is working.
Thanks ,
…On Jan 31, 2018 4:27 PM, "Nazuk Jain" ***@***.***> wrote:
@Eqbalazar <https://github.com/eqbalazar>, is this working for you with
Ping's suggestion?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1076 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHEXNEEreVChcydSoDN9Bg1D8t9hTp7Eks5tQNpigaJpZM4RFoJ_>
.
|
I am getting error after login , upgrade ADAL version from 1.12.0 to 1.13.2
The text was updated successfully, but these errors were encountered: