Skip to content

Tidal SDK for Android Login problem #103

Closed Answered by michpohl
ForMiSoft asked this question in Q&A
Discussion options

You must be logged in to vote

Here's your problem:
In ExtendedWebClient you changed this function:

private fun hasRedirectUri(uri: Uri): Boolean {
        return if (uri.toString().startsWith("")) {
            onRedirectUriReceived(uri)
            true
        } else {
            false
        }
    }
    ```
Now this one is called with every url the webview tries to load, therefore this check needs to verify if the one passed in is your `RedirectUri`. With your change this will call `onredirectUriReceived` on every address you pass in, and since it loads others before the relevant one your login process fails as the code behind `finalizeLogin` only understands the correct uri.
So if instead you check for `https://…

Replies: 3 comments 17 replies

Comment options

You must be logged in to vote
13 replies
@ForMiSoft
Comment options

@ForMiSoft
Comment options

@michpohl
Comment options

@ForMiSoft
Comment options

@ForMiSoft
Comment options

Comment options

You must be logged in to vote
4 replies
@michpohl
Comment options

@michpohl
Comment options

Answer selected by ForMiSoft
@ForMiSoft
Comment options

@michpohl
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants