티스토리 뷰

dev

ios 앱 버전 체크(애플)

IT's me 2019. 3. 23. 22:56

ios 애플 앱을 개발, 운영하다보면 앱을 업데이트 할 일이 여러가지로 많은데요. 앱을 강제로 업데이트 하거나 버전 별로 프로세스, 로직 분기를 태울만한 일들도 발생합니다. 이걸 위해 별도의 디비를 만들기에는 좀 귀찮은거 같기도 하고요. 

 

 

애플 ios 앱 버전 체크하기

 

아주 크리티컬하지 않고 몇시간의 텀 정도는 괜찮다고 한다면 아이튠즈에서 지원해주는 api를 이용하면 쉽게 체크 가능합니다. 타입은 json 타입이고요. 

http://itunes.apple.com/lookup?bundleId=[앱 번들 아이디]

예시 ) http://itunes.apple.com/lookup?bundleId=com.yelp.yelpiphone

 

{
 "resultCount":1,
 "results": [
{"appletvScreenshotUrls":[], 
"screenshotUrls":["https://is1-ssl.mzstatic.com/image/thumb/Purple113/v4/0a/ba/1b/0aba1b26-5078-6fd6-0d9f-bf4e2774d913/mzl.motjgfyx.jpg/392x696bb.jpg", "https://is1-ssl.mzstatic.com/image/thumb/Purple113/v4/14/39/2a/14392a78-5202-83aa-1140-f4da46ba7f9e/mzl.gtnaiavf.jpg/392x696bb.jpg", "https://is4-ssl.mzstatic.com/image/thumb/Purple113/v4/f8/96/4c/f8964c40-6f45-5ebe-be63-5ec6ca8005b7/mzl.lrlxrnta.jpg/392x696bb.jpg", "https://is3-ssl.mzstatic.com/image/thumb/Purple113/v4/34/2d/d9/342dd96c-d9ee-1c1a-ecb2-744b7c75942a/mzl.pqqrttcn.jpg/392x696bb.jpg", "https://is2-ssl.mzstatic.com/image/thumb/Purple123/v4/19/9c/81/199c8189-fdd4-beb7-11ba-7b8390ca69f5/mzl.lhuigiwu.jpg/392x696bb.jpg", "https://is2-ssl.mzstatic.com/image/thumb/Purple123/v4/6e/7a/13/6e7a13c3-8a48-4193-4842-7f54163c9444/mzl.fcbgbvht.jpg/392x696bb.jpg", "https://is4-ssl.mzstatic.com/image/thumb/Purple123/v4/27/87/3b/27873b2d-8684-6644-1ee9-bbf78647da00/mzl.rryifpnh.jpg/392x696bb.jpg", "https://is1-ssl.mzstatic.com/image/thumb/Purple123/v4/bb/45/11/bb45111c-6952-acc1-f6c6-474da27dc0e0/mzl.kqsbhzxx.jpg/392x696bb.jpg", "https://is3-ssl.mzstatic.com/image/thumb/Purple113/v4/28/08/16/28081672-95fc-6da3-fa86-5aabe1b26567/mzl.tszkpvxz.jpg/392x696bb.jpg", "https://is5-ssl.mzstatic.com/image/thumb/Purple123/v4/cf/36/6b/cf366bc8-d0c4-b5e9-fcb6-5162cf3d165c/mzl.pydtoxjl.jpg/392x696bb.jpg"], 
"ipadScreenshotUrls":["https://is2-ssl.mzstatic.com/image/thumb/Purple113/v4/ae/53/3c/ae533cbd-7bbe-6bb4-deb5-e234dd5813a5/mzl.pyyhmziu.jpg/552x414bb.jpg", "https://is2-ssl.mzstatic.com/image/thumb/Purple113/v4/6e/20/72/6e20720c-051e-3e9d-e489-423a0cf2cc97/mzl.meczfczi.jpg/552x414bb.jpg", "https://is3-ssl.mzstatic.com/image/thumb/Purple113/v4/a8/68/fb/a868fba9-ba5b-e4cb-e907-7f5094147083/mzl.omogrirk.jpg/552x414bb.jpg", "https://is1-ssl.mzstatic.com/image/thumb/Purple123/v4/6f/09/e6/6f09e643-2526-1950-9c4b-6cabcaa48138/mzl.mfuvqend.jpg/552x414bb.jpg", "https://is3-ssl.mzstatic.com/image/thumb/Purple113/v4/50/d9/44/50d944a8-53a0-ab0d-244f-efb36dd54975/mzl.gnwjvqub.jpg/552x414bb.jpg"], "artworkUrl512":"https://is2-ssl.mzstatic.com/image/thumb/Purple113/v4/56/d8/70/56d870f0-dca9-ecee-b760-9970d8ad1ff1/source/512x512bb.jpg", "artistViewUrl":"https://apps.apple.com/us/developer/yelp/id284910353?uo=4", "artworkUrl60":"https://is2-ssl.mzstatic.com/image/thumb/Purple113/v4/56/d8/70/56d870f0-dca9-ecee-b760-9970d8ad1ff1/source/60x60bb.jpg", "artworkUrl100":"https://is2-ssl.mzstatic.com/image/thumb/Purple113/v4/56/d8/70/56d870f0-dca9-ecee-b760-9970d8ad1ff1/source/100x100bb.jpg", 
"supportedDevices":["Watch4-Watch4", "iPhone5s-iPhone5s", "iPadAir-iPadAir", "iPadAirCellular-iPadAirCellular", "iPadMiniRetina-iPadMiniRetina", "iPadMiniRetinaCellular-iPadMiniRetinaCellular", "iPhone6-iPhone6", "iPhone6Plus-iPhone6Plus", "iPadAir2-iPadAir2", "iPadAir2Cellular-iPadAir2Cellular", "iPadMini3-iPadMini3", "iPadMini3Cellular-iPadMini3Cellular", "iPodTouchSixthGen-iPodTouchSixthGen", "iPhone6s-iPhone6s", "iPhone6sPlus-iPhone6sPlus", "iPadMini4-iPadMini4", "iPadMini4Cellular-iPadMini4Cellular", "iPadPro-iPadPro", "iPadProCellular-iPadProCellular", "iPadPro97-iPadPro97", "iPadPro97Cellular-iPadPro97Cellular", "iPhoneSE-iPhoneSE", "iPhone7-iPhone7", "iPhone7Plus-iPhone7Plus", "iPad611-iPad611", "iPad612-iPad612", "iPad71-iPad71", "iPad72-iPad72", "iPad73-iPad73", "iPad74-iPad74", "iPhone8-iPhone8", "iPhone8Plus-iPhone8Plus", "iPhoneX-iPhoneX", "iPad75-iPad75", "iPad76-iPad76", "iPhoneXS-iPhoneXS", "iPhoneXSMax-iPhoneXSMax", "iPhoneXR-iPhoneXR", "iPad812-iPad812", "iPad834-iPad834", "iPad856-iPad856", "iPad878-iPad878", "iPadMini5-iPadMini5", "iPadMini5Cellular-iPadMini5Cellular", "iPadAir3-iPadAir3", "iPadAir3Cellular-iPadAir3Cellular", "iPodTouchSeventhGen-iPodTouchSeventhGen", "iPhone11-iPhone11", "iPhone11Pro-iPhone11Pro", "iPadSeventhGen-iPadSeventhGen", "iPadSeventhGenCellular-iPadSeventhGenCellular", "iPhone11ProMax-iPhone11ProMax"], 
"advisories":["Infrequent/Mild Profanity or Crude Humor", "Infrequent/Mild Alcohol, Tobacco, or Drug Use or References", "Infrequent/Mild Mature/Suggestive Themes", "Infrequent/Mild Sexual Content and Nudity"], "isGameCenterEnabled":false, "kind":"software", "features":["iosUniversal"], "languageCodesISO2A":["CS", "DA", "NL", "EN", "FI", "FR", "DE", "IT", "JA", "MS", "NB", "PL", "PT", "ZH", "ES", "SV", "ZH", "TR"], "fileSizeBytes":"347319296", "sellerUrl":"http://www.yelp.com", "averageUserRatingForCurrentVersion":3.5, "userRatingCountForCurrentVersion":284, "trackContentRating":"12+", "trackCensoredName":"Yelp-Food & Services Around Me", "trackViewUrl":"https://apps.apple.com/us/app/yelp-food-services-around-me/id284910350?uo=4", "contentAdvisoryRating":"12+", "releaseDate":"2008-07-11T07:00:00Z", "trackId":284910350, "trackName":"Yelp-Food & Services Around Me", "currentVersionReleaseDate":"2020-01-14T19:00:53Z", 
"releaseNotes":"We resolved to have zero bugs in the app this year, so the fact that we squashed some for this release means we kinda failed. We also resolved to eat more tacos though, so the fact that we had carnitas while we did it sorta makes up for it. Life's all about balance, right?", "isVppDeviceBasedLicensingEnabled":true, "primaryGenreName":"Travel", "genreIds":["6003", "6023"], "primaryGenreId":6003, "sellerName":"Yelp, Inc.", "formattedPrice":"Free", "minimumOsVersion":"11.0", "currency":"USD", "version":"12.52.0", "wrapperType":"software", "artistId":284910353, "artistName":"Yelp", "genres":["Travel", "Food & Drink"], "price":0.00, 
"description":"Yelp has over 135 million reviews of businesses worldwide. Whether you’re looking for a new pizza place to try, a great coffee shop nearby, or need to book a haircut, Yelp is your local guide for finding the perfect place to eat, shop, drink, explore, and relax. The Yelp app is available for iPhone, iPad, and Apple Watch.\n\nYelp features:\n\nFood Near You - Find Restaurants\n• Find the newest and hottest restaurants in your area\n• Make reservations, order delivery or pickup—all from your phone\n• Filter restaurant search results by price, location, open now, and more\n\nSearch for Nearby Businesses, Services, & Professionals\n• Discover great local businesses, from hair salons to trusted doctors and movers\n• Read millions of reviews by the Yelp community\n• Home need repairs? Find the best rated contractors and handymen\n• Find great deals offered by local businesses, get quotes instantly, and book appointments\n\nBeauty - Pamper Yourself \n• Find highly-rated salons, spas, massage therapists, and more\n• Book appointments through Yelp at the most relaxing staycation destinations\n\nSearch Filters \n• Filter your search results by neighborhood, distance, rating, price, and hours of operation\n• Look up addresses and phone numbers, call a business, or make reservations directly from the app\n\nOther Features\n• Read expert user reviews and browse through beautiful photos of each business\n• Write and read reviews, check-in to local businesses, upload photos and add tips for other Yelp users\n\nFind local restaurants, read expert customer reviews, and start searching for businesses near you with Yelp. \n\nNeed Help? Contact Yelp at https://www.yelp-support.com/?l=en_CA\nNote: Continued use of GPS running can dramatically decrease battery life.", "bundleId":"com.yelp.yelpiphone", "averageUserRating":4.0, "userRatingCount":691445}]
}


이런식으로 조회하면 json 타입으로 여러가지 정보가 나옵니다. 찬찬히 보다보면 더 쓸만한 정보들도 가지고 있죠.

대표적으로 버전 체크를 할 수 있지만 스크린샷이라던지 앱의 여러가지 메타 정보에 대해서 얻어와서 프로그래밍을 하고 싶을 때 이용하면 되겠습니다.

 

실제 앱 내부가 아니라 다른 써드파티에서 이용할 때에도 도움이 될것 같군요. ㅎㅎㅎ

 

근데 이 정보가 갱신되는게 싱크가 제각각이니까 그점은 참고해서 이용해야겠습니다. A는 됐는데 사용자 B는 안된다거나 하는? ㅎㅎㅎ

 

오늘은 이렇게 ios 앱 버전 체크(애플) 하는 방법에 대해서 알아봤습니다. 

 

댓글
최근에 올라온 글
최근에 달린 댓글