Mac app store - in app purchases

Mac OSX specific forum
jesperbrannmark
Enthusiast
Enthusiast
Posts: 536
Joined: Mon Feb 16, 2009 10:42 am
Location: sweden
Contact:

Mac app store - in app purchases

Post by jesperbrannmark »

Have anyone of used in app purchases in their Purebasic made applications that is on appstore? (or will I be the first one?)
https://developer.apple.com/appstore/in ... index.html
(so question is basicly; is there any already done code that someone feel like sharing?)
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Mac app store - in app purchases

Post by IdeasVacuum »

...I think J Baker and jamirokwai may have beaten you to it.........
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
jesperbrannmark
Enthusiast
Enthusiast
Posts: 536
Joined: Mon Feb 16, 2009 10:42 am
Location: sweden
Contact:

Re: Mac app store - in app purchases

Post by jesperbrannmark »

I hope they want to share some code... I will PM them.
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: Mac app store - in app purchases

Post by J. Baker »

I haven't done "in app purchase" yet. I'm not sure if it will require the upcoming Cocoa version of PB or not. Will look into it later tonight though. ;)
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
jamirokwai
Enthusiast
Enthusiast
Posts: 772
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Re: Mac app store - in app purchases

Post by jamirokwai »

Hi there,

I didn't even try to add in-app-purchase, as I didn't need it.
Did anyone succeed in using GateKeeper? I am very interested :-)
Regards,
JamiroKwai
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: Mac app store - in app purchases

Post by J. Baker »

The GateKeeper should be fine. All it does is optionally run apps that are one of the following...

Mac App Store
Allows only applications downloaded from the Mac App Store to be launched.
Mac App Store and identified developers
Allows applications downloaded from the Mac App Store and applications signed by certified Apple developers to be launched. This is the default setting in Mountain Lion.
Anywhere
Allows all applications to be launched.

I think you may be refering to Sandboxing. That will require the Cocoa version of PB. ;)
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: Mac app store - in app purchases

Post by J. Baker »

As for "in app purchases" I started to read through it tonight. But I must say, I can't give details on it until I've done it myself. But there is a lot of info on it in the developers pages, http://developer.apple.com/library/ios/ ... ction.html

Sorry I couldn't be more help on this right now.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
jamirokwai
Enthusiast
Enthusiast
Posts: 772
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Re: Mac app store - in app purchases

Post by jamirokwai »

J. Baker wrote:The GateKeeper should be fine. All it does is optionally run apps that are one of the following...

Mac App Store
Allows only applications downloaded from the Mac App Store to be launched.
Mac App Store and identified developers
Allows applications downloaded from the Mac App Store and applications signed by certified Apple developers to be launched. This is the default setting in Mountain Lion.
Anywhere
Allows all applications to be launched.

I think you may be refering to Sandboxing. That will require the Cocoa version of PB. ;)
No, not talking about Sandboxing. I'd like to sign my Apps outside the App Store with the Gatekeeper-Certificate, but didn't quite succeed...
I tried Sandboxing using Entitlements (see here: http://www.purebasic.fr/english/viewtop ... 83#p384210), but my Apps crashed. I think you are right, Cocoa is needed for this...
Regards,
JamiroKwai
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: Mac app store - in app purchases

Post by J. Baker »

jamirokwai wrote:
J. Baker wrote:The GateKeeper should be fine. All it does is optionally run apps that are one of the following...

Mac App Store
Allows only applications downloaded from the Mac App Store to be launched.
Mac App Store and identified developers
Allows applications downloaded from the Mac App Store and applications signed by certified Apple developers to be launched. This is the default setting in Mountain Lion.
Anywhere
Allows all applications to be launched.

I think you may be refering to Sandboxing. That will require the Cocoa version of PB. ;)
No, not talking about Sandboxing. I'd like to sign my Apps outside the App Store with the Gatekeeper-Certificate, but didn't quite succeed...
I tried Sandboxing using Entitlements (see here: http://www.purebasic.fr/english/viewtop ... 83#p384210), but my Apps crashed. I think you are right, Cocoa is needed for this...
Where you create your certificates for the app store, you should also be able to create and download the Developer ID Application Certificate and Developer ID Installer Certificate. Use those for apps that you don't plan on putting on the app store. I haven't read anything about a gatekeeper certificate. ;)
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
jamirokwai
Enthusiast
Enthusiast
Posts: 772
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Re: Mac app store - in app purchases

Post by jamirokwai »

J. Baker wrote:
jamirokwai wrote: No, not talking about Sandboxing. I'd like to sign my Apps outside the App Store with the Gatekeeper-Certificate, but didn't quite succeed...
I tried Sandboxing using Entitlements (see here: http://www.purebasic.fr/english/viewtop ... 83#p384210), but my Apps crashed. I think you are right, Cocoa is needed for this...
Where you create your certificates for the app store, you should also be able to create and download the Developer ID Application Certificate and Developer ID Installer Certificate. Use those for apps that you don't plan on putting on the app store. I haven't read anything about a gatekeeper certificate. ;)
Hi J. Baker,

yes. I tried that, but on Mountain Lion with XCode 4.4, using this in Terminal:

Code: Select all

sudo chmod -R a+xr "$1"
codesign -s "Developer ID Application: quadWorks" -fv "$1"
produced this error:

Code: Select all

codesign_allocate: can't allocate code signature data for: /Users/joe/Desktop/test.app/Contents/MacOS/test (for architecture i386) because larger updated load commands do not fit (the program must be relinked using a larger -headerpad value)
/Users/joe/Desktop/test.app: object file format unrecognized, invalid, or unsuitable

Probably installed 4.4 to early... I have no idea how to fix :?
Regards,
JamiroKwai
Rinzwind
Enthusiast
Enthusiast
Posts: 638
Joined: Wed Mar 11, 2009 4:06 pm
Location: NL

Re: Mac app store - in app purchases

Post by Rinzwind »

Sooo anyone by now experience and possibly some example code for inapp purchases in relation to PB programming?
Post Reply