Author Topic: iOS InApp Purchases  (Read 17134 times)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10723
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: iOS InApp Purchases
« Reply #30 on: 2011-Sep-19 »
I earned my first $0.49 from in app purchases.
Thanks so much!

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1543
    • View Profile
Re: iOS InApp Purchases
« Reply #31 on: 2011-Sep-19 »
Too early to get thirsty?

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10723
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: iOS InApp Purchases
« Reply #32 on: 2011-Sep-20 »
Bobble Heads - the sale was on day 1.

Offline Omadan

  • Dr. Type
  • ****
  • Posts: 374
    • View Profile
    • Top Arcade Apps Games
Re: iOS InApp Purchases
« Reply #33 on: 2011-Dec-01 »
Can we say that IAP is working properly now? I intend on using it for my next App.

Thanks Ampos
Top Arcade Apps - Best game for mobiles and computers

http://www.toparcadeapps.com

Offline ampos

  • Prof. Inline
  • *****
  • Posts: 1594
    • View Profile
    • AMpostata Website
Re: iOS InApp Purchases
« Reply #34 on: 2011-Dec-02 »
Just tested in iOS 5.0 and it works.

Damm, I bought my own app!  :doubt:
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10723
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: iOS InApp Purchases
« Reply #35 on: 2011-Dec-02 »
buy your own pushes the sales -> app store ranking ;)

Offline ampos

  • Prof. Inline
  • *****
  • Posts: 1594
    • View Profile
    • AMpostata Website
Re: iOS InApp Purchases
« Reply #36 on: 2012-Feb-06 »
Additional info:

-iOS InApp purchases has been cracked: you can buy "for free". Although some programs fails, our InApp system is vulnerable: you can buy any InApp purchase.

-We can detect if the iOS has the InApp hack installed: before going to the real InApp function, just try a fake purchase. If it returned "true", the iOS InApp system is hacked. I returned a msg that says "Sorry, InApp purchases can not be processed. Your device is hacked".

-In the last loop, the user has 2 options, PURCHASE and CANCEL. Once he presses PURCHASE, iOS will return to our app PURCHASE SUCESFULL or FAILED. But we can not detect if the user CANCELled it, so our app will be in an infinite loop waiting for the SUSC or FAIL msg. What I am doing is counting mouse clicks (screen touchs) on this loop: if the user cancelled the purchase, he will be waiting for the app to return to main game/loop. As the app it is not returning, he will kick (touch!) the screen saying "hey, what are you waiting for?". If the mouse counter reaches 2 or 3, I assume it was cancelled (also, not tested right now, but I think also that GL apps can not detect screen touchs while a iOS (purchase) window is open.)
« Last Edit: 2012-Feb-11 by ampos »
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3690
    • View Profile
    • Space Fractal
Re: iOS InApp Purchases
« Reply #37 on: 2012-Feb-06 »
There was workaround snippet code how to do that to detect those cheaters.

It's proterty got trashed by the backup. Would been nice to update the first post which checking that too.

Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline ampos

  • Prof. Inline
  • *****
  • Posts: 1594
    • View Profile
    • AMpostata Website
Re: iOS InApp Purchases
« Reply #38 on: 2012-Feb-11 »
The file InApp.mm has been modified by Michael Werren, and it now works with user cancelled purchases.

Also I have modified the GLBasic code to support detection of cracked InApp routines.

NOTE: In iTunes Connect, when you are ready to sent your app to review, on the page where you upload the graphics, at the bottom, there is a paragraph titled "In App purchases". Edit it and enable the InApp purchases that you want Apple's review team to review, or your app will not have InApp purchases availables.
« Last Edit: 2012-Feb-11 by ampos »
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Offline spicypixel

  • Prof. Inline
  • *****
  • Posts: 646
  • Pixel Artist
    • View Profile
    • SpicyPixel.net
Re: iOS InApp Purchases
« Reply #39 on: 2012-Feb-11 »
Is the code for this in the very first post Ampos or has it been replaced with the backup, just checking to ensure I have everything I need before implementing, thank you :)
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: iOS InApp Purchases
« Reply #40 on: 2012-Feb-11 »
Could anyone add a simple call for write permissions in /tmp - if this works the device is jailbroken
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

Offline ampos

  • Prof. Inline
  • *****
  • Posts: 1594
    • View Profile
    • AMpostata Website
Re: iOS InApp Purchases
« Reply #41 on: 2012-Feb-11 »
Is the code for this in the very first post Ampos or has it been replaced with the backup, just checking to ensure I have everything I need before implementing, thank you :)

Yes, it has latest & working code and files.

Quote
Could anyone add a simple call for write permissions in /tmp - if this works the device is jailbroken

A Jailbroken device is not a "pirate" device. In fact, JB is great (I have installed on my iPhone a hack to has cards as WebOS)
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3690
    • View Profile
    • Space Fractal
Re: iOS InApp Purchases
« Reply #42 on: 2012-Feb-11 »
But that could prevent GameCenter cheating and such ting. example I don't want users  to use GameCenter for JailBroken device at all, which is simply just because its too easy to cheat the system Recently you can unlock archivements (as well hiscore) you want. Cheats like that is simply something coword when people does that.

The same for InApp purchases for hacked devices, which of course piracy, so nice that thing can been stopped (until the app got fully cracked of course, even I do some drm thing in my game as well).
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10723
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: iOS InApp Purchases
« Reply #43 on: 2012-Feb-14 »
A Jailbroken device is not a "pirate" device. In fact, JB is great (I have installed on my iPhone a hack to has cards as WebOS)
Got a link to that extension? Also, how's the battery use after applying this?