Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

[MBS] Mac App Store Receipt Validation (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] ConsoleExecuteMBS On Windows?
Next thread: [MBS] [ANN] Omega Bundle 2011 for REAL Studio Released


[MBS] MBS 7.5 with RB2010r4.1   -   Garth Hjelte
  [MBS] Mac App Store Receipt Validation   -   Christian Schmitz
   Re: [MBS] Mac App Store Receipt Validation   -   Christian Schmitz
   Re: [MBS] Mac App Store Receipt Validation   -   Tim Jones
   Re: [MBS] Mac App Store Receipt Validation   -   Christian Schmitz
   Re: [MBS] Mac App Store Receipt Validation   -   Jaap Cammeraat
   Re: [MBS] Mac App Store Receipt Validation   -   Christian Schmitz
   Re: [MBS] Mac App Store Receipt Validation   -   Jaap Cammeraat
   Re: [MBS] Mac App Store Receipt Validation   -   Christian Schmitz

[MBS] Mac App Store Receipt Validation
Date: 07.01.11 14:32 (Fri, 7 Jan 2011 14:32:30 +0100)
From: Christian Schmitz
Hello,

I won't make a plugin for this, I think.

This is already part of MacOSLib and it's hard to compete with free.

But on our blog I posted a few days ago an example project which the code from MacOSLib adjusted to use plugin functions. This way the code you need to copy is much smaller and most of our clients use our plugins anyway.

Greetings
Christian

Re: [MBS] Mac App Store Receipt Validation
Date: 08.01.11 02:20 (Sat, 8 Jan 2011 02:20:59 +0100)
From: Christian Schmitz

Am 08.01.2011 um 01:49 schrieb Tim Jones:

> Also, don't depend on the App.BundleIdentifier value as it is currently set by the contents of the Info.plist. This is an issue with RS's placing those values into the Info.plist without storing an internal constant value. There's a feature request to change this, but in the mean time, it's important to remember to create copies of the values assigned in the App class into your own properties. Otherwise, you'll simply be comparing what your app read from the plist against the values in the plist.

I'm getting crazy. But well, you can hard code it there and you should be fine. Or even better use some kind of hiding or hash so people don't modify your app for this hash.

Greetings
Christian

Re: [MBS] Mac App Store Receipt Validation
Date: 08.01.11 01:49 (Fri, 07 Jan 2011 17:49:46 -0700)
From: Tim Jones
On Jan 7, 2011, at 2:25 PM, Christian Schmitz wrote:

> Am 07.01.2011 um 14:32 schrieb Christian Schmitz:
>
>> Hello,
>>
>> I won't make a plugin for this, I think.
>>
>> This is already part of MacOSLib and it's hard to compete with free.
>>
>> But on our blog I posted a few days ago an example project which the code from MacOSLib adjusted to use plugin functions. This way the code you need to copy is much smaller and most of our clients use our plugins anyway.
>
> If you use it, you should add the BundleID comparios.
>
> return receipt.Value(Keys.kReceiptBundleIdentifer) = bundleID

I guess the proper question is - what keys do we have available to compare in the receipt?

Also, don't depend on the App.BundleIdentifier value as it is currently set by the contents of the Info.plist. This is an issue with RS's placing those values into the Info.plist without storing an internal constant value. There's a feature request to change this, but in the mean time, it's important to remember to create copies of the values assigned in the App class into your own properties. Otherwise, you'll simply be comparing what your app read from the plist against the values in the plist.

Tim

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Mac App Store Receipt Validation
Date: 07.01.11 22:25 (Fri, 7 Jan 2011 22:25:38 +0100)
From: Christian Schmitz

Am 07.01.2011 um 14:32 schrieb Christian Schmitz:

> Hello,
>
> I won't make a plugin for this, I think.
>
> This is already part of MacOSLib and it's hard to compete with free.
>
> But on our blog I posted a few days ago an example project which the code from MacOSLib adjusted to use plugin functions. This way the code you need to copy is much smaller and most of our clients use our plugins anyway.

If you use it, you should add the BundleID comparios.

return receipt.Value(Keys.kReceiptBundleIdentifer) = bundleID

instead of the

return true

in the IsValid function.

Greetings
Christian

Re: [MBS] Mac App Store Receipt Validation
Date: 07.01.11 15:01 (Fri, 7 Jan 2011 15:01:44 +0100)
From: Jaap Cammeraat
You're great!
Greetings from Holland :)


Op 7 jan 2011, om 14:54 heeft Christian Schmitz het volgende geschreven:

>
> Am 07.01.2011 um 14:51 schrieb Jaap Cammeraat:
>
>> Is this code already working in an App now?
>
> Yes. it's right from my Combine PDFs.
>
> Greetings
> Christian
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Mac App Store Receipt Validation
Date: 07.01.11 14:54 (Fri, 7 Jan 2011 14:54:27 +0100)
From: Christian Schmitz

Am 07.01.2011 um 14:51 schrieb Jaap Cammeraat:

> Is this code already working in an App now?

Yes. it's right from my Combine PDFs.

Greetings
Christian

Re: [MBS] Mac App Store Receipt Validation
Date: 07.01.11 14:51 (Fri, 7 Jan 2011 14:51:55 +0100)
From: Jaap Cammeraat
Is this code already working in an App now?


Op 7 jan 2011, om 14:48 heeft Christian Schmitz het volgende geschreven:

>
> Am 07.01.2011 um 14:32 schrieb Christian Schmitz:
>
>> Hello,
>>
>> But on our blog I posted a few days ago an example project which the code from MacOSLib adjusted to use plugin functions. This way the code you need to copy is much smaller and most of our clients use our plugins anyway.
>
> URL:
> http://www.mbsplugins.de/archive/2011-01-06/Mac_App_Store_launched_(Update
>
> Greetings
> Christian
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Mac App Store Receipt Validation
Date: 07.01.11 14:48 (Fri, 7 Jan 2011 14:48:03 +0100)
From: Christian Schmitz

Am 07.01.2011 um 14:32 schrieb Christian Schmitz:

> Hello,
>
> But on our blog I posted a few days ago an example project which the code from MacOSLib adjusted to use plugin functions. This way the code you need to copy is much smaller and most of our clients use our plugins anyway.

URL:
http://www.mbsplugins.de/archive/2011-01-06/Mac_App_Store_launched_(Update

Greetings
Christian