탐색이 차단됨:intent:kakaolink://send?appkey=앱키&appver=1.0&apiver=…ne%2Ftoday%22%7D%7D%5D&forwardable=false#Intent;package=com.kakao.talk;end;
Chrome (53.0.2785.134)
모바일 구글크롬에서 카카오톡 링크 공유 버튼 클릭시 화면 깜빡임 한번과
위와같은 오류가 발생합니다.
카카오 톡 링크가 되지않습니다.
//developers.kakao.com/sdk/js/kakao.min.js
SDK 사용하였구요
소스는
jsp 내 spcript
function test_kakao(){
kakao_obj['label'] = " ..................... ";
kakao_obj['image'] = "${OGIMAGE}";
kakao_obj['text'] = " .................";
kakao_login_check(0, kakao_obj);
}
import한 js
Kakao.init(kakaoKey);
var kakao_type ;
function kakao_login_check(type, kakaoObj) {
kakao_type = type;
Kakao.Auth.login({
success :function(response) {
response['kakao_type'] = kakao_type;
console.log("check : "+ JSON.stringify(response));
fn_kakao_status(response, kakaoObj);
},
fail : function(err) {
console.log(err);
fn_kakao_logout();
return false;
}
})
}
function fn_kakao_status(data, kakaoObj) {
console.log("link_kakaotalk : " + JSON.stringify(kakaoObj))
kakao_type = data.kakao_type;
Kakao.Auth.getStatus(function(statusObj){
if(statusObj.status === "connected") {
statusObj['kakao_type'] = kakao_type;
get_kakao_userinfo(statusObj, kakaoObj);
}
})
}
function get_kakao_userinfo(obj, kakaoObj) {
kakao_type = obj.kakao_type;
if(kakao_type === 0 ) {
Kakao.API.request({
url : '/v1/user/me',
success : function(response) {
var obj = {
id : response.id,
name : name,
profile_picture : response.properties.profile_image,
thumbnail_picture : response.properties.thumbnail_image,
type : "KAKAO",
kakao_type : kakao_type
}
console.log("kakaoTalk share")
var valid_result = $('#success_check').val();
if(valid_result == "1") {
....................
} else {
var content_url = absoluteURL;
link_to_kakaotalk(content_url, kakaoObj);
}
},
fail : function(e) {
console.log(e);
return false;
}
})
} else {
..........
}
}
function link_to_kakaotalk(url, kakao_obj){
Kakao.Link.sendTalkLink({
label: kakao_obj.label,
image: {
src: kakao_obj.image,
width: '800',
height: '600'
},
webButton: {
text: kakao_obj.text,
url: url
}
});
}