feat: add timeout to close Kakao in-app browser on Android
Add a 10ms setTimeout to redirect to 'kakaotalk://inappbrowser/close' after opening an external URL in Kakao Talk on Android, ensuring the in-app browser closes automatically for better user experience.
lemon-mint committed
Nov 3, 2025 at 11:45 UTC
eb42aeb52ae358c75639cd552b738595a2d320cd
1 file changed
+3
cmd/webclient/index.html
+3
@@ -179,6 +179,9 @@
179
if (isAndroid) {
180
if (isKakao) {
181
location.href = 'kakaotalk://web/openExternal?url=' + encodeURIComponent(finalUrl);
182
+ setTimeout(() => {
183
+ location.href = 'kakaotalk://inappbrowser/close';
184
+ }, 10);
185
} else {
186
// Use Intent to open in Chrome or default browser
187
const intentUrl = 'intent://' + finalUrl.replace(/^https?:\/\//, '') + '#Intent;scheme=https;action=android.intent.action.VIEW;end';