giold
9월 18, 2023, 5:09오후
1
문의 시, 사용하시는 SDK 버전 정보와 디벨로퍼스 앱ID를 알려주세요.
디벨로퍼스 앱ID: 793219
SDK버전: 2.1.0/kakao.min.js
안드로이드에서 초대장을 만들 수 있고 웹페이지를 통해 다른사람에게 공유할 수 있습니다.
안드로이드에서는 해당 초대장을 웹뷰를 통해서 볼 수 있구요
이 초대장이 웹페이지에서는 정상적으로 동작하나 안드로이드 웹뷰에서는 클릭해도 아무런 반응이 없습니다.
문제 발생해서 아래와같이 수정했습니다
하이브리드 앱 가이드 | Kakao Developers 하이브리드 앱 가이드 보고 아래처럼 수정
그런데 마지막 로그가 나오더라구요
Log.e(TAG, “Could not parse anythings”)
이때 들어온 url이
intent://send?appkey=삭제&appver=1.0&linkver=4.0&extras=삭제&template_json=삭제&template_args=삭제
입니다. 근데 다른 문제가 발생했던 사람들의 url과 조금 다른게 intent://kakaolink로 다들 시작했던것같은데 저희가 응답으로 받은건 이렇게 나오더라구요.
웹에서는 kakao.Share.sendDefault 를 사용해서 공유를 하고있습니다.
어떤문제인지 한번 확인부탁드리겠습니다.
안녕하세요.
browser_fallback_url 처리 되어 있으실까요?
그리고, sendDefault 사용된 파라미터 공유 부탁드립니다.
// Fallback URL이 있으면 현재 웹뷰에 로딩
val fallbackUrl = intent.getStringExtra("browser_fallback_url")
giold
9월 19, 2023, 4:11오전
3
brower_fallback_url에 대한 내용은 어디서 확인할수있나요?
안드로이드 코드내에 brower_fallback_url설정은 안되어있습니다.
파라메터는 임의로 내용을 수정했습니다
{
objectType: "feed",
content: {
title: `title`,
description: `desc`,
imageUrl: 'url',
link: {
webUrl: `webUrl`,
mobileWebUrl: `mobileWebUrl`,
},
},
buttons: [
{
title: "초대장 보기",
link: {
mobileWebUrl: `mobileWebUrl`,
webUrl: `webUrl`,
},
},
{
title: "참석 신청",
link: {
mobileWebUrl: `mobileWebUrl`,
webUrl: `webUrl`,
},
},
],
}
giold
9월 19, 2023, 4:55오전
5
// Fallback URL이 있으면 현재 웹뷰에 로딩
val fallbackUrl = intent.getStringExtra("browser_fallback_url")
if (fallbackUrl != null) {
view?.loadUrl(fallbackUrl)
Log.d(TAG, "FALLBACK: $fallbackUrl")
return true
}
확인해봤는데 이렇게 그대로 작성되어있는 상태입니다.
brower_fallback_url에 다른 값을 넣을게 없이 그냥 저 문자열 그대로 넣으면 되나요?
넵, 그대로 두시면 됩니다.
다른 원인이 있을것 같은데요
Log.e(TAG, "Could not parse anythings")
로깅 때, intent 값도 같이 로깅하여 제공 부탁드립니다.
giold
9월 19, 2023, 5:51오전
7
네 fallback url 은 그대로 둔상태로 구현되어있네요
intent.toString() 출력(이거 그대로 올려도되는지 모르겠네요 혹시몰라서 앱키를 삭제했습니다)
kakaolink://send?appkey=[앱키는삭제했습니다혹시몰라서]&appver=1.0&linkver=4.0&extras=%7B%22KA%22%3A%22sdk%2F2.1.0%20os%2Fjavascript%20sdk_type%2Fjavascript%20lang%2Fko-KR%20device%2FLinux_armv81%20origin%2Fhttps%253A%252F%252Fstaging.invite.alllida.com%22%7D&template_json=%7B%22P%22%3A%7B%22TP%22%3A%22Feed%22%2C%22ME%22%3A%22%24%7BME%7D%22%2C%22SID%22%3A%22capri_793219%22%2C%22DID%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%2C%22SNM%22%3A%22%EB%AA%A8%EB%91%90%EC%95%8C%EB%A6%AC%EB%8B%A4_alllida%22%2C%22SIC%22%3A%22https%3A%2F%2Fk.kakaocdn.net%2F14%2Fdn%2FbtrQyvPmAyS%2FVB65ry12xHlWyBvrAClmW1%2Fo.jpg%22%2C%22L%22%3A%7B%22LCA%22%3A%22kakaoac4ba3c52cbee579f5ddcb50b3d80a9b%3A%2F%2Fkakaolink%22%2C%22LCI%22%3A%22kakaoac4ba3c52cbee579f5ddcb50b3d80a9b%3A%2F%2Fkakaolink%22%2C%22LPC%22%3A%22https%3A%2F%2Falllida.com%22%2C%22LMO%22%3A%22https%3A%2F%2Falllida.com%22%2C%22LCP%22%3A%22kakaoac4ba3c52cbee579f5ddcb50b3d80a9b%3A%2F%2Fkakaolink%22%2C%22LCM%22%3A%22kakaoac4ba3c52cbee579f5ddcb50b3d80a9b%3A%2F%2Fkakaolink%22%2C%22LA%22%3A%22market%3A%2F%2Fdetails%3Fid%3Dcom.alllida%22%7D%2C%22SL%22%3A%7B%22LCA%22%3A%22kakaoac4ba3c52cbee579f5ddcb50b3d80a9b%3A%2F%2Fkakaolink%22%2C%22LCI%22%3A%22kakaoac4ba3c52cbee579f5ddcb50b3d80a9b%3A%2F%2Fkakaolink%22%2C%22LPC%22%3A%22https%3A%2F%2Falllida.com%22%2C%22LMO%22%3A%22https%3A%2F%2Falllida.com%22%2C%22LCP%22%3A%22kakaoac4ba3c52cbee579f5ddcb50b3d80a9b%3A%2F%2Fkakaolink%22%2C%22LCM%22%3A%22kakaoac4ba3c52cbee579f5ddcb50b3d80a9b%3A%2F%2Fkakaolink%22%2C%22LA%22%3A%22market%3A%2F%2Fdetails%3Fid%3Dcom.alllida%22%7D%2C%22LA%22%3A%22market%3A%2F%2Fdetails%3Fid%3Dcom.alllida%22%2C%22VA%22%3A%226.0.0%22%2C%22VI%22%3A%225.9.8%22%2C%22VW%22%3A%222.5.1%22%2C%22VM%22%3A%222.2.0%22%2C%22FW%22%3Atrue%2C%22RF%22%3A%22out-client%22%7D%2C%22C%22%3A%7B%22THC%22%3A1%2C%22THL%22%3A%5B%7B%22TH%22%3A%7B%22THU%22%3A%22https%3A%2F%2Fk.kakaocdn.net%2Fdn%2FblZd9N%2Fbl4uMAgefyT%2F8lDUZhbRFq4vE3oyF7i1Tk%2Fkakaolink40_original.webp%22%2C%22W%22%3A400%2C%22H%22%3A400%7D%2C%22L%22%3A%7B%22LPC%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%2C%22LMO%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%7D%7D%5D%2C%22PR%22%3A%7B%22L%22%3A%7B%22LPC%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%2C%22LMO%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%7D%7D%2C%22HD%22%3A%7B%22L%22%3A%7B%22LPC%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%2C%22LMO%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%7D%7D%2C%22TI%22%3A%7B%22TD%22%3A%7B%22T%22%3A%22%EC%9D%B4%EA%B7%9C%ED%98%B8%20%E2%9D%A4%20%EC%9D%B4%EA%B7%9C%ED%98%B8%EC%98%A4%EC%98%A5%20%EA%B2%B0%ED%98%BC%ED%95%A9%EB%8B%88%EB%8B%A4%22%2C%22D%22%3A%2223.09.15%20(%EA%B8%88)%204%3A05%20PM%20%5Cn%EA%B0%80%20%EA%B0%80%22%7D%2C%22L%22%3A%7B%22LPC%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%2C%22LMO%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%7D%7D%2C%22BUL%22%3A%5B%7B%22BU%22%3A%7B%22T%22%3A%22%EC%B4%88%EB%8C%80%EC%9E%A5%20%EB%B3%B4%EA%B8%B0%22%7D%2C%22L%22%3A%7B%22LPC%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%2C%22LMO%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%7D%7D%2C%7B%22BU%22%3A%7B%22T%22%3A%22%EC%B6%95%ED%95%98%EB%A7%88%EC%9D%8C%EC%A0%84%ED%95%98%EA%B8%B0%22%7D%2C%22L%22%3A%7B%22LPC%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%2Faccount%22%2C%22LMO%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%2Faccount%22%7D%7D%5D%2C%22TAM%22%3A%5B%7B%22TP%22%3A%22ITL%22%7D%5D%7D%7D&template_args=%7B%22%24%7BIMAGE_WIDTH%7D%22%3A%22400%22%2C%22%24%7BSECOND_BUTTON_WEB_URL%7D%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%2Faccount%22%2C%22%24%7BITEM3_OP%7D%22%3A%22%22%2C%22%24%7BPROFILE_TEXT2%7D%22%3A%22%22%2C%22%24%7BFIRST_BUTTON_TITLE%7D%22%3A%22%EC%B4%88%EB%8C%80%EC%9E%A5%20%EB%B3%B4%EA%B8%B0%22%2C%22%24%7BDESCRIPTION%7D%22%3A%2223.09.15%20(%EA%B8%88)%204%3A05%20PM%20%5Cn%EA%B0%80%20%EA%B0%80%22%2C%22%24%7BITEM5%7D%22%3A%22%22%2C%22%24%7BANDROID_EXECUTION_URL%7D%22%3A%22%22%2C%22%24%7BITEM1%7D%22%3A%22%22%2C%22%24%7BITEM3%7D%22%3A%22%22%2C%22%24%7BFIRST_BUTTON_IOS_EXECUTION_URL%7D%22%3A%22%22%2C%22%24%7BITEM4_OP%7D%22%3A%22%22%2C%22%24%7BSUM%7D%22%3A%22%22%2C%22%24%7BITL_AL%7D%22%3A%22%22%2C%22%24%7BFIRST_BUTTON_MOBILE_WEB_URL%7D%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%2C%22%24%7BSUBSCRIBER_COUNT%7D%22%3A%22%22%2C%22%24%7BTITLE%7D%22%3A%22%EC%9D%B4%EA%B7%9C%ED%98%B8%20%E2%9D%A4%20%EC%9D%B4%EA%B7%9C%ED%98%B8%EC%98%A4%EC%98%A5%20%EA%B2%B0%ED%98%BC%ED%95%A9%EB%8B%88%EB%8B%A4%22%2C%22%24%7BSECOND_BUTTON_TITLE%7D%22%3A%22%EC%B6%95%ED%95%98%EB%A7%88%EC%9D%8C%EC%A0%84%ED%95%98%EA%B8%B0%22%2C%22%24%7BSUM_OP%7D%22%3A%22%22%2C%22%24%7BWEB_URL%7D%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%2C%22%24%7BVIEW_COUNT%7D%22%3A%22%22%2C%22%24%7BFIRST_BUTTON_WEB_URL%7D%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%2C%22%24%7BSECOND_BUTTON_ANDROID_EXECUTION_URL%7D%22%3A%22%22%2C%22%24%7BSECOND_BUTTON_MOBILE_WEB_URL%7D%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%2Faccount%22%2C%22%24%7BIOS_EXECUTION_URL%7D%22%3A%22%22%2C%22%24%7BIMAGE_URL%7D%22%3A%22https%3A%2F%2Fk.kakaocdn.net%2Fdn%2FblZd9N%2Fbl4uMAgefyT%2F8lDUZhbRFq4vE3oyF7i1Tk%2Fkakaolink40_original.webp%22%2C%22%24%7BIMAGE_COUNT%7D%22%3A%221%22%2C%22%24%7BPROFILE_TEXT1%7D%22%3A%22%22%2C%22%24%7BITEM4%7D%22%3A%22%22%2C%22%24%7BTITLE_IMAGE_CATEGORY%7D%22%3A%22%22%2C%22%24%7BSHARED_COUNT%7D%22%3A%22%22%2C%22%24%7BPROFILE_IMAGE_URL%7D%22%3A%22%22%2C%22%24%7BITEM5_OP%7D%22%3A%22%22%2C%22%24%7BTITLE_IMAGE_TEXT%7D%22%3A%22%22%2C%22%24%7BITEM1_OP%7D%22%3A%22%22%2C%22%24%7BITEM2%7D%22%3A%22%22%2C%22%24%7BSECOND_BUTTON_IOS_EXECUTION_URL%7D%22%3A%22%22%2C%22%24%7BCOMMENT_COUNT%7D%22%3A%22%22%2C%22%24%7BIMAGE_HEIGHT%7D%22%3A%22400%22%2C%22%24%7BTITLE_IMAGE_URL%7D%22%3A%22%22%2C%22%24%7BMOBILE_WEB_URL%7D%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%2C%22%24%7BFIRST_BUTTON_ANDROID_EXECUTION_URL%7D%22%3A%22%22%2C%22%24%7BITEM2_OP%7D%22%3A%22%22%2C%22%24%7BLIKE_COUNT%7D%22%3A%22%22%7D&template_id=3140
넘어온 url
intent://send?appkey=[앱키는삭제했습니다혹시몰라서]&appver=1.0&linkver=4.0&extras=%7B%22KA%22%3A%22sdk%2F2.1.0%20os%2Fjavascript%20sdk_type%2Fjavascript%20lang%2Fko-KR%20device%2FLinux_armv81%20origin%2Fhttps%253A%252F%252Fstaging.invite.alllida.com%22%7D&template_json=%7B%22P%22%3A%7B%22TP%22%3A%22Feed%22%2C%22ME%22%3A%22%24%7BME%7D%22%2C%22SID%22%3A%22capri_793219%22%2C%22DID%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%2C%22SNM%22%3A%22%EB%AA%A8%EB%91%90%EC%95%8C%EB%A6%AC%EB%8B%A4_alllida%22%2C%22SIC%22%3A%22https%3A%2F%2Fk.kakaocdn.net%2F14%2Fdn%2FbtrQyvPmAyS%2FVB65ry12xHlWyBvrAClmW1%2Fo.jpg%22%2C%22L%22%3A%7B%22LCA%22%3A%22kakaoac4ba3c52cbee579f5ddcb50b3d80a9b%3A%2F%2Fkakaolink%22%2C%22LCI%22%3A%22kakaoac4ba3c52cbee579f5ddcb50b3d80a9b%3A%2F%2Fkakaolink%22%2C%22LPC%22%3A%22https%3A%2F%2Falllida.com%22%2C%22LMO%22%3A%22https%3A%2F%2Falllida.com%22%2C%22LCP%22%3A%22kakaoac4ba3c52cbee579f5ddcb50b3d80a9b%3A%2F%2Fkakaolink%22%2C%22LCM%22%3A%22kakaoac4ba3c52cbee579f5ddcb50b3d80a9b%3A%2F%2Fkakaolink%22%2C%22LA%22%3A%22market%3A%2F%2Fdetails%3Fid%3Dcom.alllida%22%7D%2C%22SL%22%3A%7B%22LCA%22%3A%22kakaoac4ba3c52cbee579f5ddcb50b3d80a9b%3A%2F%2Fkakaolink%22%2C%22LCI%22%3A%22kakaoac4ba3c52cbee579f5ddcb50b3d80a9b%3A%2F%2Fkakaolink%22%2C%22LPC%22%3A%22https%3A%2F%2Falllida.com%22%2C%22LMO%22%3A%22https%3A%2F%2Falllida.com%22%2C%22LCP%22%3A%22kakaoac4ba3c52cbee579f5ddcb50b3d80a9b%3A%2F%2Fkakaolink%22%2C%22LCM%22%3A%22kakaoac4ba3c52cbee579f5ddcb50b3d80a9b%3A%2F%2Fkakaolink%22%2C%22LA%22%3A%22market%3A%2F%2Fdetails%3Fid%3Dcom.alllida%22%7D%2C%22LA%22%3A%22market%3A%2F%2Fdetails%3Fid%3Dcom.alllida%22%2C%22VA%22%3A%226.0.0%22%2C%22VI%22%3A%225.9.8%22%2C%22VW%22%3A%222.5.1%22%2C%22VM%22%3A%222.2.0%22%2C%22FW%22%3Atrue%2C%22RF%22%3A%22out-client%22%7D%2C%22C%22%3A%7B%22THC%22%3A1%2C%22THL%22%3A%5B%7B%22TH%22%3A%7B%22THU%22%3A%22https%3A%2F%2Fk.kakaocdn.net%2Fdn%2FblZd9N%2Fbl4uMAgefyT%2F8lDUZhbRFq4vE3oyF7i1Tk%2Fkakaolink40_original.webp%22%2C%22W%22%3A400%2C%22H%22%3A400%7D%2C%22L%22%3A%7B%22LPC%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%2C%22LMO%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%7D%7D%5D%2C%22PR%22%3A%7B%22L%22%3A%7B%22LPC%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%2C%22LMO%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%7D%7D%2C%22HD%22%3A%7B%22L%22%3A%7B%22LPC%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%2C%22LMO%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%7D%7D%2C%22TI%22%3A%7B%22TD%22%3A%7B%22T%22%3A%22%EC%9D%B4%EA%B7%9C%ED%98%B8%20%E2%9D%A4%20%EC%9D%B4%EA%B7%9C%ED%98%B8%EC%98%A4%EC%98%A5%20%EA%B2%B0%ED%98%BC%ED%95%A9%EB%8B%88%EB%8B%A4%22%2C%22D%22%3A%2223.09.15%20(%EA%B8%88)%204%3A05%20PM%20%5Cn%EA%B0%80%20%EA%B0%80%22%7D%2C%22L%22%3A%7B%22LPC%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%2C%22LMO%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%7D%7D%2C%22BUL%22%3A%5B%7B%22BU%22%3A%7B%22T%22%3A%22%EC%B4%88%EB%8C%80%EC%9E%A5%20%EB%B3%B4%EA%B8%B0%22%7D%2C%22L%22%3A%7B%22LPC%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%2C%22LMO%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%7D%7D%2C%7B%22BU%22%3A%7B%22T%22%3A%22%EC%B6%95%ED%95%98%EB%A7%88%EC%9D%8C%EC%A0%84%ED%95%98%EA%B8%B0%22%7D%2C%22L%22%3A%7B%22LPC%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%2Faccount%22%2C%22LMO%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%2Faccount%22%7D%7D%5D%2C%22TAM%22%3A%5B%7B%22TP%22%3A%22ITL%22%7D%5D%7D%7D&template_args=%7B%22%24%7BIMAGE_WIDTH%7D%22%3A%22400%22%2C%22%24%7BSECOND_BUTTON_WEB_URL%7D%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%2Faccount%22%2C%22%24%7BITEM3_OP%7D%22%3A%22%22%2C%22%24%7BPROFILE_TEXT2%7D%22%3A%22%22%2C%22%24%7BFIRST_BUTTON_TITLE%7D%22%3A%22%EC%B4%88%EB%8C%80%EC%9E%A5%20%EB%B3%B4%EA%B8%B0%22%2C%22%24%7BDESCRIPTION%7D%22%3A%2223.09.15%20(%EA%B8%88)%204%3A05%20PM%20%5Cn%EA%B0%80%20%EA%B0%80%22%2C%22%24%7BITEM5%7D%22%3A%22%22%2C%22%24%7BANDROID_EXECUTION_URL%7D%22%3A%22%22%2C%22%24%7BITEM1%7D%22%3A%22%22%2C%22%24%7BITEM3%7D%22%3A%22%22%2C%22%24%7BFIRST_BUTTON_IOS_EXECUTION_URL%7D%22%3A%22%22%2C%22%24%7BITEM4_OP%7D%22%3A%22%22%2C%22%24%7BSUM%7D%22%3A%22%22%2C%22%24%7BITL_AL%7D%22%3A%22%22%2C%22%24%7BFIRST_BUTTON_MOBILE_WEB_URL%7D%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%2C%22%24%7BSUBSCRIBER_COUNT%7D%22%3A%22%22%2C%22%24%7BTITLE%7D%22%3A%22%EC%9D%B4%EA%B7%9C%ED%98%B8%20%E2%9D%A4%20%EC%9D%B4%EA%B7%9C%ED%98%B8%EC%98%A4%EC%98%A5%20%EA%B2%B0%ED%98%BC%ED%95%A9%EB%8B%88%EB%8B%A4%22%2C%22%24%7BSECOND_BUTTON_TITLE%7D%22%3A%22%EC%B6%95%ED%95%98%EB%A7%88%EC%9D%8C%EC%A0%84%ED%95%98%EA%B8%B0%22%2C%22%24%7BSUM_OP%7D%22%3A%22%22%2C%22%24%7BWEB_URL%7D%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%2C%22%24%7BVIEW_COUNT%7D%22%3A%22%22%2C%22%24%7BFIRST_BUTTON_WEB_URL%7D%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%2C%22%24%7BSECOND_BUTTON_ANDROID_EXECUTION_URL%7D%22%3A%22%22%2C%22%24%7BSECOND_BUTTON_MOBILE_WEB_URL%7D%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%2Faccount%22%2C%22%24%7BIOS_EXECUTION_URL%7D%22%3A%22%22%2C%22%24%7BIMAGE_URL%7D%22%3A%22https%3A%2F%2Fk.kakaocdn.net%2Fdn%2FblZd9N%2Fbl4uMAgefyT%2F8lDUZhbRFq4vE3oyF7i1Tk%2Fkakaolink40_original.webp%22%2C%22%24%7BIMAGE_COUNT%7D%22%3A%221%22%2C%22%24%7BPROFILE_TEXT1%7D%22%3A%22%22%2C%22%24%7BITEM4%7D%22%3A%22%22%2C%22%24%7BTITLE_IMAGE_CATEGORY%7D%22%3A%22%22%2C%22%24%7BSHARED_COUNT%7D%22%3A%22%22%2C%22%24%7BPROFILE_IMAGE_URL%7D%22%3A%22%22%2C%22%24%7BITEM5_OP%7D%22%3A%22%22%2C%22%24%7BTITLE_IMAGE_TEXT%7D%22%3A%22%22%2C%22%24%7BITEM1_OP%7D%22%3A%22%22%2C%22%24%7BITEM2%7D%22%3A%22%22%2C%22%24%7BSECOND_BUTTON_IOS_EXECUTION_URL%7D%22%3A%22%22%2C%22%24%7BCOMMENT_COUNT%7D%22%3A%22%22%2C%22%24%7BIMAGE_HEIGHT%7D%22%3A%22400%22%2C%22%24%7BTITLE_IMAGE_URL%7D%22%3A%22%22%2C%22%24%7BMOBILE_WEB_URL%7D%22%3A%22https%3A%2F%2Finvite.alllida.com%2F0971de62-f838-4fb4-83d8-1478a1335eff%22%2C%22%24%7BFIRST_BUTTON_ANDROID_EXECUTION_URL%7D%22%3A%22%22%2C%22%24%7BITEM2_OP%7D%22%3A%22%22%2C%22%24%7BLIKE_COUNT%7D%22%3A%22%22%7D&template_id=3140#Intent;scheme=kakaolink;launchFlags=0x14008000;end;
더 필요한게 있으신가요?
톡이 설치된 환경에서 테스트 하신게 맞으실까요?
웹에서 카카오톡 공유하기 사용 시, install:true 파라미터를 추가로 전달 해보시겠어요?
giold
9월 19, 2023, 6:32오전
9
카톡이 설치되지않은 안드로이드 폰입니다!
예전엔 카톡이 설치되지않으면 웹에서 공유하도록 나왔던것같은데 아닌가요?
아쉽지만, 모바일 환경에서 톡 공유만 지원됩니다.
위와 같은 경우 카카오톡이 설치되지 않은 경우 앱 설치가 가능하도록 install: true
파라미터를 추가 전달하시거나, 사용자에게 톡 설치 메시지를 표시하시는게 좋을 것 같습니다.
giold
9월 19, 2023, 8:06오전
11
답변감사합니다.
그러면 kkakao.share.setDefault는
데스크탑 피씨와 카톡이 깔려있는 AOS/iOS 브라우저 및 웹뷰에서 사용할수있다고 판단하면되는건가요?
그리고 혹시 웹에서 카카오톡이 설치되어있지 않은상태인지 판단할 수 있는 방법이 있을까요?
네, 맞습니다.
브라우저에서 JS 만으로 앱 설치 여부를 확인하기는 어렵습니다.
하이브리드 앱으로 개발중이시면 intent 사용 가능여부로 톡 설치 여부를 알수 있을거라 생각되는데요
어떤 경우/기대효과를 위해 판단하고자 하시나요?
giold
9월 19, 2023, 8:30오전
13
아 개발을 어떻게 진행해야하는지 확인차 여쭤보려고했습니다.
아 해당부분이 가능할경우 웹 혹은 앱 어느쪽에서 처리하는게 더 나은지 판단하기위해서 여쭤봤었습니다.
혹시
intent 사용 가능여부로 톡 설치 여부를 알수 있을거라 생각되는데요
이부분 좀더 자세하게 알 수 있을까요?
예를들어 안드로이드 웹뷰에서 카카오 공유요청이 들어왔을때 shouldOverridingUrl 함수에서 해당 intent의 주소나 넘어온 내용으로 카카오 공유 요청인지 판단이 가능하다는거죠?
혹시 카카오외에도 다른 url클릭시에도 shouldOverridingUrl이 호출되는걸로 알고있는데 카카오의 요청임을 구분할 방법이 있을까요?
intent 내용에 kakao 가 포함되어 있는가로 구분 가능합니다.
다만, 카카오톡 로그인, 카카오톡 공유하기 사용 시, install:true 파라미터를 전달하면, browser_fallback_url 로 앱 설치 링크가 전달되어 스토어로 이동하게 됩니다.
따라서 서비스측에서 이러한 구분이 필요할지는 고민해 보시는게 좋을것 같습니다.
giold
10월 18, 2023, 5:23오후
16
안녕하세요, 이전에 말씀해주셨던 대로
kakao.Share.sendDefault({
호출시 installTalk: true
옵션을 주고 사용중입니다
(이전에 답변으로 install: true를 주라고하셨는데 실제 사용해보니 오류가나더라구요. installTalk를 사용하는게 맞는건가요?)
kakao.Share.sendDefault를 사용시 installTakl옵션을 주게되면 browser_fallback_url데이터가 넘어온다고하셨는데
안드로이드에서 해당 페이지를 여는 webview에 shouldOverrideUrlLoading의 val fallbackUrl = intent.getStringExtra(“browser_fallback_url”) 부분에 넘어오는 url이 없습니다.
이부분 어떻게 처리하면될까요?
giold
10월 23, 2023, 2:19오전
18
카카오앱이 설치되지않은 핸드폰 테스트했을때 케이스입니다.
웹에서 구현한 카카오톡 공유 기능을 해당 핸드폰에서 테스트했을 때 공유버튼이 동작하지않습니다
공유 옵션에 installTalk: true옵션을 추가하면 카카오톡이 설치되지않았을경우 카카오톡 설치 플레이스토어로 넘어갈 수 있도록 browser_fallback_url이 넘어온다고하는데 안드로이드에서 intent에 browser_fallback_url를 갖고와도 값이 없어서 아무동작을 하지않습니다.
안녕하세요.
죄송합니다.
앞서 잘못 안내드렸는데요 browser_fallback_url은 카카오 로그인 시, 전달되며, 카카오톡 공유하기 사용시는 전달되지 않습니다
카카오톡 공유하기의 경우 기본적으로 모바일 브라우저를 대응하다보니 installTalk: true 설정 시, intent 스킴 뒤에 package가 추가되어 모바일 브라우저가 마켓으로 이동할 수 있게 합니다.
모바일 브라우저와 달리 웹뷰에서는 이러한 intent URL이 동작 않기에 intent.resolveActivity()
결과가 없을 때, 필요하신 경우 마켓으로 직접 이동 부탁드립니다.
ex,
startActivity(Intent(ACTION_VIEW, Uri.parse("market://details?id=com.kakao.talk"))