Page 1 of 1
Mac app store - in app purchases
Posted: Fri Jul 27, 2012 11:52 am
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?)
Re: Mac app store - in app purchases
Posted: Fri Jul 27, 2012 8:21 pm
by IdeasVacuum
...I think J Baker and jamirokwai may have beaten you to it.........
Re: Mac app store - in app purchases
Posted: Fri Jul 27, 2012 8:55 pm
by jesperbrannmark
I hope they want to share some code... I will PM them.
Re: Mac app store - in app purchases
Posted: Fri Jul 27, 2012 9:41 pm
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.

Re: Mac app store - in app purchases
Posted: Sat Jul 28, 2012 5:39 am
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

Re: Mac app store - in app purchases
Posted: Sat Jul 28, 2012 5:59 am
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.

Re: Mac app store - in app purchases
Posted: Sat Jul 28, 2012 6:09 am
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.
Re: Mac app store - in app purchases
Posted: Sat Jul 28, 2012 7:02 am
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...
Re: Mac app store - in app purchases
Posted: Sat Jul 28, 2012 8:35 am
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.

Re: Mac app store - in app purchases
Posted: Sat Jul 28, 2012 10:20 am
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

Re: Mac app store - in app purchases
Posted: Mon Nov 18, 2019 2:46 pm
by Rinzwind
Sooo anyone by now experience and possibly some example code for inapp purchases in relation to PB programming?