tui.app-loader icon indicating copy to clipboard operation
tui.app-loader copied to clipboard

iOS버전 네이버 앱 웹뷰 UserAgent 파싱 오류로 인한 오동작

Open sangyeonYoon opened this issue 5 years ago • 0 comments

Version

tui-code-snippet.min.js @version 1.3.0 ua-parser.min.js @version 0.7.1 tui-app-loader.min.js @version 2.1.0

Development Environment

브라우저 : 네이버 앱 내 WebView OS : iOS

아래 UserAgent 문자열은 구글링을 통한 샘플이지만, 현재도 아이폰 환경에서 네이버 앱내 웹뷰로 apploader 구동시, 앱이 설치되었음에도 불구하고 앱 실행이 안됨. (etcCallback 호출)

추측컨데 apploader 내부적으로 UAParser 가 OS를 이상하게(arch) 파싱하여 정상 작동이 되지 않는 것 같습니다.

Current Behavior


var userAgentString = 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_3 like Mac OS X; ko-kr) AppleWebKit/528.18 (KHTML, like Gecko) Mobile/7E18 NAVER(inapp; search; 103; 3.2.5)'

new UAParser(userAgentString).getOS()

//{name: "arch", version: undefined}

Expected Behavior

{name: "iOS", version: 3.1.3}

sangyeonYoon avatar May 14 '19 14:05 sangyeonYoon