How to make an asynchronous API call from token provider? #3277
Unanswered
monil-shah-13
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We are using the token provider from the SDK which has a method
loadToken
that returns a string. From there we make an API call to our backend to generate a token. As the function needs to return a string, we need to make the API call usingrunBlocking
using following code:This is leading to generate ANR for some user. How can we make it asynchronous?
Beta Was this translation helpful? Give feedback.
All reactions