tony-yun
tony-yun
@tosspayments/widget-sdk-react-native/src/utils/convertUrl 문의드립니다.
넵 우선은 상황 알겠습니다. 답변 감사드립니다.
21 replies
@tosspayments/widget-sdk-react-native/src/utils/convertUrl 문의드립니다.
네 react native 에서 ios 부분입니다. widget-sdk-react-native의 ConvertUrl클라스 launchApp함수에서 Linking.canOpenUrl 로 판단 (url 주소가 앱스킴일 경우 당연히 false 반환) 하면 안될까요?
const appLink = await this.getAppLink();
if (Linking.canOpenURL(appLink)) {
return Linking.openURL(appLink);
} else {
const marketUrl = await this.getMarketUrl();
return Linking.openURL(marketUrl);
}
const appLink = await this.getAppLink();
if (Linking.canOpenURL(appLink)) {
return Linking.openURL(appLink);
} else {
const marketUrl = await this.getMarketUrl();
return Linking.openURL(marketUrl);
}
21 replies
@tosspayments/widget-sdk-react-native/src/utils/convertUrl 문의드립니다.
앱다운로드를 누르면 이동합니다. 다만 유저가 자기 폰에 '페이북'앱이 설치가 안된걸 인지 못했을 경우 '결제하기' 버튼을 누르는데, 그 상황에서 설치안됐을 시 앱스토어로 이동시키고 싶어서 각종 방법을 찾고 있었습니다.
21 replies
@tosspayments/widget-sdk-react-native/src/utils/convertUrl 문의드립니다.
네 맞습니다
21 replies