본문 바로가기
개발/게임) 개발관련

AppleStore)Apple Store Update Version Check (iOS 앱 업데이트 체크하기)

by 테샤르 2024. 1. 5.

App Store Update Version Check (iOS 앱 업데이트 체크하기)

iOS App Store에 업로드 이후에 낮은 버전에서 업데이트에 대한 체크를 하기 위한 방법이다.

스토어에 올라간 버전을 체크하면 된다.

 

반응형

 

https://itunes.apple.com/lookup?bundleId={패키지명}

 

해당 정보를 넣으면 JSON으로 된 Apple Store에 업로드된 패키지명에 해당하는 스토어에 정보를 준다.

 

< 예시 Apple 에 내장된 날씨 어플의 패키지명을 넣어보면 다음과 같다.

 

https://itunes.apple.com/lookup?bundleId=com.apple.weather

 

다운받아지는 JSON 파일의 정보를 보면 다음과 같다.

하단에서 보면 Version 정보가 있는것을 확인 할수 있다. 해당 정보를 Parsing 해서 버전을 비교해서 더 낮으면 업데이트를 진행하는 조건을 처리하면 된다.

 

iOS App에서는 해당 정보가 갱신이 안되는 경우가 종종 있다 그런 경우에는 다음을 참고해서 해결하면 된다.

http://itunes.apple.com/lookup?bundleId={bundle}&date=\(Date.init().timeIntervalSince1970)

 

Store 정보가 갱신되는 주기가 24시간이라고 이야기를 하지만 그거보다는 좀 더 빠른것 같다.

참고 : [링크]

 

Check if my app has a new version … | Apple Developer Forums

Just an FYI. I use to do this until one time I submitted an update and it was rejected for programmatically checking for updates. That was a number of years ago so policies may have changed and I haven't tried it since to find out.

developer.apple.com

 

Apple Developer : Can't get correct version on App Store : [링크]

 

★☆☆☆☆

 

반응형

댓글