• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by renaldogoosen · Jul 01, 2012 at 07:23 PM · iphonexcodeipadstorekit

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..

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image whydoidoit · Jul 01, 2012 at 07:35 PM 0
Share

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.

avatar image Voxel-Busters · Aug 09, 2015 at 06:46 PM 0
Share

Give a try with Cross Platform Native Plugins. Very easy setup and lots of features.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

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?

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

unable to download & load particular scene in iPhone Project 2 Answers

Error linker IOS / Unity - XcODE 2 Answers

Xcode build crashes 0 Answers

Unity modules for iOS? 1 Answer

Codes / Scripts that will not work on iOS 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges