tiktok / tiktok-opensdk-android

The TikTok OpenSDK features Login Kit and Share Kit which allow your users to log in using their TikTok account and share content from your app to TikTok.
https://developers.tiktok.com
Other
49 stars 17 forks source link

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

Open reachzhai opened 11 months ago

reachzhai commented 11 months ago
    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 commented 10 months ago

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"?