★ TouchArcade needs your help. Click here to support us on Patreon.

In-App Purchase with <3.0 ?

02-12-2010, 12:55 PM
#1
Joined: May 2009
Posts: 594
In-App Purchase with <3.0 ?

in short - is it possible to have in-app purchase with OS 2.2.1 ?

in long - we always thought that in-app purchases require OS 3.0, but just yesterday we noticed that in the latest update of iBomber they added in-app purchase option but the game requires only OS 2.2.1. at the same - tons of users are complaing about a broken update, it might be connected with 2.2.1...

so which one is it ? 3.0 needed or not ? we'd like to add in-app purchases to one of our games but it was compiled and released with 2.2.1 requirement only

Last edited by MikeSz_spokko; 02-12-2010 at 12:58 PM.
02-12-2010, 01:01 PM
#2
In short, yes it is possible. Is it easy. Heavens no. It is worth it, heavens yes!

The Life Blog
Minecraft

02-12-2010, 01:03 PM
#3
Joined: Jun 2009
Posts: 10,965
And here with Valentines Day I read that as "In-App Purchase with Love"

But it's a good question...

I don't see why not, unless there's a 3.x library that gets used to run the DLC bits... (I am not a developer, nor do I play one on TV.)

Quote:
Originally Posted by NickFalk View Post
Squids!?

Worst idea ever!
02-12-2010, 01:06 PM
#4
Joined: Nov 2009
Location: Ireland
Posts: 29
Here's a link to an example Apple application that "shows how to target older OS versions while building with newly released APIs."

http://developer.apple.com/iphone/li...ser/index.html

Your app will run on 2.2.1 or whatever, but unless the user is running 3.0 or above, they won't be able to use those API features.
02-12-2010, 01:15 PM
#5
Joined: May 2009
Posts: 594
cool, that's what I thought - weak link Store Kit and go with 2.2.1 definitely want to try this

any hints on how to check what OS version is the app being run at ?
02-12-2010, 01:20 PM
#6
Joined: Nov 2009
Location: Ireland
Posts: 29
This should do it:

Code:
NSString *currSysVer = [[UIDevice currentDevice] systemVersion];
02-12-2010, 02:42 PM
#7
Joined: May 2009
Posts: 594
Quote:
Originally Posted by Dave Sims View Post
This should do it:

Code:
NSString *currSysVer = [[UIDevice currentDevice] systemVersion];
thanks !

@ The prez 12521 - have you done it yourself ? if so - any tutorial that you have used ?

will be grateful for any help, tried to google but to no avail
02-12-2010, 03:28 PM
#8
Joined: Nov 2009
Location: Ireland
Posts: 29
Have you already implemented In-App purchase or are you just looking to make your existing setup workable with 2.x?
02-12-2010, 04:28 PM
#9
Joined: May 2009
Posts: 594
frankly speaking we didn't implement it yet at all. we were absolutely sure that to have InApps you cant compile for 2.2.1 so we never bothered... until I noticed the iBomber update info
02-12-2010, 09:57 PM
#10
Joined: Nov 2009
Location: Ireland
Posts: 29
Ah ok, I'm in the process of implementing it myself but I haven't had much time to work on it, check out the apple docs along with this series:

http://gamesfromwithin.com/in-app-purchases-part-1

I don't think they make a mention of weak linking, but I'm hoping it should be easy enough to figure out from the MailComposer example.

There's also services like http://urbanairship.com/ that handle a lot of the integration for you, but I'm not sure if they support 2.x.

Hope that helps somewhat.