- Home /
iPhone StoreKit implementation problem
I am trying to add the iTunes storeKit and am somewhat unfamiliar with Xcode. I found this tutorial http://troybrant.net/blog/2010/01/in-app-purchases-a-full-walkthrough/ . At #7 of the first section is the storekit code samples. What I am having a problem with is locating the files in Xcode itself and once I have, how do I fetch this information that has been added in Xcode and get my GUI to call it up?
for eg. Finding the .h and .m files? Do I place the fetch in my GUI touch in out? And What do I write to fetch the xcode information?
function Update() { for (var touch : Touch in Input.touches) { if (guiTexture.HitTest (touch.position)) { Get StoreKit item - "ProUpgrade" }
} }
Please don't say Prime31.. And if Prime31 how much am I going to struggle getting that to work? Thanks, any input or suggestions welcome..
You will struggle a lot less with Prime31 - you need to configure all of the native calls as extern marked functions in Unity to be able to call them, then replicate any passed data structures. I can't imagine why you would do this rather than pay a few dollars for a tested one.
Give a try with Cross Platform Native Plugins. Very easy setup and lots of features.
Answer by renaldogoosen · Jul 01, 2012 at 07:30 PM
And once the purchase is made, I want a value in my game to show 1. Does the iPad store the purchase information if the game gets unistalled and installed again?
Answer by u3dxt · Oct 29, 2013 at 03:20 PM
We offer a FREE native plugin that provides in-app purchases with Apple hosted downloads, and an easy to use API. It also mirrors the exact native StoreKit framework with 20 classes and 102 methods if you want to use advanced functionalities and customize implementation. There are examples, tutorials, and videos showing you how to use it.
Asset store link of the free U3DXT Basic: https://www.assetstore.unity3d.com/#/content/11817
We also offer a Pro edition that comes with GameKit, Social Networking, Face Detection, iOS 7, Speech, Game Controllers, Multipeer Connectivity, Media Player, AddressBook, EventKit, and much more to come. https://www.assetstore.unity3d.com/#/content/9555
Your answer
Follow this Question
Related Questions
Error linker IOS / Unity - XcODE 2 Answers
unable to download & load particular scene in iPhone Project 2 Answers
XCode errors 1 Answer
iphone like date pickers 1 Answer