반응형
웹뷰로 구성된 앱을 심사요청하였는데 아래와 같은 메시지를 받았다
Your app provides a limited user experience as it is not sufficiently different from a mobile browsing experience. As such, the experience it provides is similar to the general experience of using Safari. Including iOS features such as push notifications, Core Location, and sharing do not provide a robust enough experience to be appropriate for the App Store.
Next Steps
To resolve this issue, please revise your app to provide a more robust user experience by including additional native iOS functionality.
If you cannot - or choose not to - revise your app to be in compliance with the App Store Review Guidelines, you may wish to build an HTML5 web app instead. You can distribute web apps directly on your web site; the App Store does not accept or distribute web apps. For more information about creating web apps, refer to the Configuring Web Applications section of the Safari Web Content Guide. For a description of the HTML elements and attributes you can use in Safari on iPhone, check out Safari HTML Reference: Introduction. Please see attached screenshot for details.
원인
사파리의 모바일 브라우징과 동일한 사용자 경험을 제공한다라는 문제였다.
첨부된 스크린샷을 보니 모바일 화면이 아닌 PC용 페이지가 보이고 있었다.
심사 요청한 앱은 iphone 전용으로 개발하였는데 테스터가 보내준 화면은 ipad 화면처럼 보였다.
문의해보니 iphone 전용으로 만들어진 앱도 ipad에서 동일한 해상도로 기능을 제공해야 한다는 것.
해결
webView.customUserAgent 추가
var webView: WKWebView!
.
.
.
.
override func viewDidLoad() {
.
.
.
webView.customUserAgent = "Mozilla/5.0 (iPod; U; CPU iPhone OS 4_3_3 like Mac OS X; ja-jp) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5";
.
.
.
}
※ 참고 : https://stackoverflow.com/questions/59616100/wkwebview-to-display-only-mobile-version-of-website
반응형
'개발 > ios' 카테고리의 다른 글
Swift 기본 문법과 데이터 타입 (0) | 2023.10.11 |
---|---|
[Swift] EXC_BREAKPOINT (SIGTRAP) (0) | 2022.09.08 |
[Swift] hierarchy 문제 (0) | 2022.08.30 |
[IOS/Swift] 앱 심사 거절 사유 - Guideline 2.1 - Performance - App Completeness (0) | 2022.08.30 |