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

How to close custome Tab which open by tiktok customTabsIntent #11

Open
reachzhai opened this issue Aug 7, 2023 · 1 comment
Open

Comments

@reachzhai
Copy link

    private fun launchChromeTab(authRequest: AuthRequest): Boolean {
        if (!authRequest.validate()) {
            return false
        }
        val builder = CustomTabsIntent.Builder()
        val customTabsIntent = builder.build()
        customTabsIntent.launchUrl(
            activity,
            Uri.parse(
                WebAuthHelper.composeLoadUrl(
                    activity,
                    authRequest,
                    activity.packageName,
                )
            )
        )
        return true
    }
@youngKimTikTok
Copy link
Contributor

You can close the tab by going to the custom tab and tapping the 'X' button in the upper-left of your screen (the location of the button is subject to the device's model).
If this does not answer your question, could you please clarify what you mean by "closing the custom tab"?

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