Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

3 great FREE demos on setting up iAP (all you need to get going)

Discussion in 'iOS and tvOS' started by zombie_psy, Apr 6, 2014.

  1. zombie_psy

    zombie_psy

    Joined:
    Oct 9, 2012
    Posts:
    62
    Some good FREE Unity demos for iAP:

    Sorry, I posted 3 demos before even trying them out on device. When I did just now, I didn't like any of them so I went ahead and deleted them because I don't support them haha. I'm gonna try the Unity Plugin way, using the Bonjour client demo that they have:

    https://docs.unity3d.com/Documentation/Manual/Plugins.html

    I'll post a step-by-step once I have the time to R&D it out, or maybe look into submitting it to Asset Store.
     
    Last edited: Apr 8, 2014
  2. zombie_psy

    zombie_psy

    Joined:
    Oct 9, 2012
    Posts:
    62
    Well, i must say In-App Purchases are the most difficult thing to try to add to a Unity game (everything else was easier than expected), mainly because Unity has not supporting functions for it, and what's left are just independent progammers selling their implementation on the Asset Store.


    Does anyone know if there is a free interpretation of just the Storekit functions, like the Bonjuor iphone demo project, for Unity? I've tried Soomla and U3DXT, but don't really like how they add all this other things to it..

    Thanks for the help.
     
    Last edited: Apr 9, 2014
  3. zombie_psy

    zombie_psy

    Joined:
    Oct 9, 2012
    Posts:
    62
    Also, I'm pretty insulted how some of these plugin creators are using SEO to force developers, who are just trying to learn how to do it for educational purposes, into PAYING for their products, as if there is no other way.

    I must say it's pretty effective marketing, but at a cost of ethics and frustrating seasoned developers who are new to iOS.

    I wont mention any names, but it's pretty obvious who they are. If you search for topics like "how to implement unity iOS iap" or "Unity in app purchase tutorial", you will actually see those titles, but guess what happens when you visit the link:

    It was just an advertisement to their pay plugin. They don't even attempt to answer the question!!
     
    Last edited: Apr 9, 2014
  4. zombie_psy

    zombie_psy

    Joined:
    Oct 9, 2012
    Posts:
    62
    Or maybe a cheap plugin with just the Storekit functionality with no fluff, storefront creations, or attempted upsales? Just like the iphone Bonjuor example project, but with the IAP functions instead of Bonjour functions.
     
  5. zombie_psy

    zombie_psy

    Joined:
    Oct 9, 2012
    Posts:
    62
    I've given up and purchased one of the Scripting Integration plugins from the Asset Store :(

    However, I'll share at what point I've decided to throw in the towel and pay for one. I couldn't figure out the process of calling Objective C functions within the "Extern C {}" block in order to call the iOS native StoreKit functions.
     
    Last edited: Apr 11, 2014
  6. cbaltzer

    cbaltzer

    Joined:
    Jan 11, 2012
    Posts:
    120
    Which is why paid plugins exist. Many (maybe even most) Unity developers aren't familiar with Objective-C. Add integrating it with Unity on top of that and it becomes very easy to justify $10 or whatever for a plugin. Much cheaper than a few days worth of work/learning to write it yourself.

    That said, once you've figured it out, it's actually not too bad. You only need to wrap your methods in extern "C" {} if they're C++ (a .mm file). If you're writing straight C/Objective-C/.m you don't need to wrap them, they'll just work.

    I'll admit it's not very good, but, here's a tutorial I wrote that might help you: http://www.ad-dispatch.com/native-plugins-from-the-ground-up/