IAP consumables purchases

0 favourites
  • 4 posts
From the Asset Store
a ready made template of Mobile Advert, Google Play and Mobile IAP Plugin,
  • Is the save game in the cloud provided by google play services enough for keeping track of consumables products?

    I also would like to know why we don't need to keep track ourselves of non-consumables items. The manual says the plugin keep track of this information. Does that mean scirra have a server which holds this information for us?

    Thanks.

  • Also can we have a test mode like we have for admob?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • "Test mode" is provided by the App/Play store here, if believe it requires registering a specific account to use for testing ( been quite awhile since I've needed to test it ). Then it will provide fake purchase flows for you. It requires more setup, but there isn't an equivalent setting for us just enable testing mode like admob.

    Scirra doesn't ever see purchase information, and it certainly isn't stored on our server. The App/Play store on the device keeps track of user purchases. Both stores are capable of telling you if the user "owns" a product, and if the product is available for purchase.

    On Android all products are "consumable". Users can only own one of each product, once a product has been consumed the user no longer owns the product. This is why you cannot check consumables and you must keep track of them.

    Admittedly they could probably change how this works, so that developers do not need to run a separate system for tracking purchases. But the developer doesn't really need to keep track of the consumable purchase, but what it represented ( gems, coins, power ups, etc. ). Hence it would need to be a more complicated system that allows the storage of something more generic and isn't necessarily tied to the store anymore.

    You can store that information any way you like, but there's a few questions you should ask before choosing somewhere to put it.

    1. If the user deletes the app, will their items persist?

    2. If the user has multiple devices with the app, will it work correctly?

    3. Can the user modify the data, possibly getting items for free or deleting other users items?

    As users will be paying for these goods, you should treat them like actual money. Any risk of them vanishing, or being copied is not good! I haven't used the Play Games Snapshot system, but it might work for you. You might have issues keeping data synced if an awkward user plays your game on 2 devices at the same time, as both devices can modify the items without the other knowing ( creating, using, exchanging items ). Even if you check before using an item, there's a chance that it will have been modified between your check and update ( look up "Atomic commit" ). There's a chance that the Snapshot feature has a solution to this built in, but I haven't looked through the documentation.

  • KEEPING TRACK OF PURCHASES

    It's important to consider how you're going to keep track of user purchases before you start adding IAP events. Non-consumable purchases are tracked by the app stores, so you can easily find out if the user owns it. However, consumable products are a bit more tricky. The app stores don't track these, so...

    Nepeo well, I've read the plugin's manual and It says that the app stores(android and IOS) deals with the purchase stores of non-consumable items. So I didn't get you I guess.

    I purchased an item and then uninstalled my app. The purchase was there after reinstalling. But I just tested a bit more and right now I've changed some configs on my app and then removed and reinstalled it. Awkwardly, I'm getting the save game I had before these changes, instead of the last save game created right before closing the app and removing it.

    Regarding to these three questions: I believe google handles it If they store our purchases.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)