I've almost finished my app, but I can't make InApp purchase complete, because I can't securely store what the user bought. I've found that the best solution is the using of keychain. But there is no API for it in the iOS SDK, so it can't be done in Delphi. There is an external library, but it can't be implemented in Delphi. :( In XCode you have to call C code to store and retreive secure data, but I don't know it is possible in Delphi. Here is a good tutorial for it. I'm looking for any other solution for that problem.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the fast reply! Yes I've already checked it (and doing it in that moment too), but after the user bought something and restarted my App, how to check if he/she has it? Probably there is no internet connection at the moment, so I have to store somewhere this information.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks, one more question. Is it secure? For example, if someone who using a jailbroken iphone, buy my app, then post my default values to a torrent site with my app, it can be copied? Or the information is only accessed to my app?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
I've almost finished my app, but I can't make InApp purchase complete, because I can't securely store what the user bought. I've found that the best solution is the using of keychain. But there is no API for it in the iOS SDK, so it can't be done in Delphi. There is an external library, but it can't be implemented in Delphi. :( In XCode you have to call C code to store and retreive secure data, but I don't know it is possible in Delphi. Here is a good tutorial for it. I'm looking for any other solution for that problem.
Thanks
Hi Fenistil
Do you see the InAppPurchase demo ?
In the DPFInAppPurchase component have UpdatedTransactions event and you can see State parameter with this values :
Regards
Hi
Thanks for the fast reply! Yes I've already checked it (and doing it in that moment too), but after the user bought something and restarted my App, how to check if he/she has it? Probably there is no internet connection at the moment, so I have to store somewhere this information.
Thanks
Hi Fenistil
Use TDPFUserDefaults component for save and restore your data,
Regards
Thanks, one more question. Is it secure? For example, if someone who using a jailbroken iphone, buy my app, then post my default values to a torrent site with my app, it can be copied? Or the information is only accessed to my app?
Hi Fenistil
On jailbreaked devices we cant protect our app for 100%.
But you can encrypt your data in default setting with device ID and decode it with device ID,
Regards
That seems to be good. I'll give it a chance. Thanks a lot!