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

Blocking call in task #14

Open
alexandre-roulin opened this issue Apr 25, 2018 · 2 comments
Open

Blocking call in task #14

alexandre-roulin opened this issue Apr 25, 2018 · 2 comments

Comments

@alexandre-roulin
Copy link

Call from this function

private fun loginWithFacebookAccessToken(accessToken: AccessToken) {
        promiseOnUi {
            mvpView?.showLoggingProgress()
        } then {
            loginManager.loginWithFacebook(accessToken).get() //Call from this side
		} alwaysUi {
            mvpView?.hideLoggingProgress()
        } successUi {
            mvpView?.navigateToMainScreen()
        } failUi { error ->
			mvpView?.showMessage(error.localizedMessage)
        }
    }

To this function

    fun loginWithFacebook(fbAccessToken: AccessToken): Promise<Unit, Exception> {
		ti { "KOVENANT In Function" }
        return task {
			ti { "KOVENANT In task" }
        } then {
			ti { "KOVENANT In then" }
        }
    }

Hi
I have a problem in the last function, my call is block in the task { .. }
My application is deploy on a SAMSUNG S4 MINI API 19 Version 4.4.2
And the logcat only show : "KOVENANT In Function"

@alexandre-roulin
Copy link
Author

It Work on :
-ZTE ZTE BLADE A512 (Android 6.0.1, API 23)
-HUAWEI HUAWEI VNS-L21 (Android 6.0, API 23)
but not on :
-Samsung GT-I9195 (Android 4.4.2, API 19)

@friendoye
Copy link

I would try to use bind() instead of then-get combination.

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

2 participants