Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to identify iOS Universal apps from apple RSS feed

I'm working on an iOS app review website and have taken a look at the tools Apple provides, such as iTunes RSS feeds and API.

However, I do not know how to distinguish an iOS Universal app from the other iOS app types (iPhone and iPad only).

Any idea how to make this distinction so I can segregate iOS Universal apps?

Thanks!

like image 642
Luis Gutierrez Avatar asked May 25 '11 00:05

Luis Gutierrez


1 Answers

I checked out the xml and there doesn't appear to be an element that specifies it's universality. But the link contained in the feed that points to the app's page on itunes.apple.com contains this bit of code:

<p><span class="app-requirements">Requirements: </span>
Compatible with iPhone, iPod touch, and iPad. Requires iOS 3.1 or later
</p>

and if I'm correct you can probably get at that bit of html by targeting the class ("app-requirements" in this case) and maybe do a bit of Regex magic to check if ipad and/or iphone is contained therein.

Hope this help...not clued up enough to go into exact details.

like image 110
Dale Botha Avatar answered Oct 18 '22 09:10

Dale Botha