User Tag List

Page 2 of 4 FirstFirst 1 2 3 4 LastLast
Results 11 to 20 of 32

Thread: Android IAP Definitive Guide

  1. #11
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,423
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Outcast View Post
    Yes I read something like this, that seems extremely unpractical though toward the developer from Googles point of view? I heard there may be some other solution by rooting the android device and removing the profile with some program, but I dont know how safe rooting is? I have heard some stories of peoples devices getting broken after rooting :s But maybe its for the best to NOT have the developer account on your device? I mean is there any reason why you would want to have the dev account on the device?
    in your cellphone, sign up for another google account, don't sign in your phone with the google account use for your developers account.

    It won't let you pay for the app. Which is dumb LOL. Why would google even care, they charge you for for each transaction anyways, isn't that more money for them anyways?

    I like how ouya has it setup, that if you are the owner of the app or game the payment goes ahead but it doesn't charge you anything.


  2. #12
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,156
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    I reset my device so now I can test inapp purchases They seem to work now, but I must have done something wrong because they inventory is acting a bit strange. I have attached the example of how my mfa here: https://dl.dropboxusercontent.com/u/...blic/inApp.mfa
    Also here is a screenshot of the test after a purchase: https://dl.dropboxusercontent.com/u/...c/IMG_0355.JPG

    On start of the app I have two items in the "store inventory", they are "test_sword" and "test_shield". I also have a button to buy a "test_sword" and another button to consume a "test_sword". What happens when i buy a "test_sword" though is that in the player inventory I see a "test_SHIELD" being added instead of a "test_sword" and in the store inventory two more instances of "test_sword" and "test_shield" is added (so now the total number of store items are 4).

    Also when I consume the "test_sword" i bought I see that one more "test_shield" is added to the player inventory (?). Also the total store inventory is increased to two more items so they are now a total of 6 (3 "test_sword" and 3 "test_shield".

    I guess I must be doing something wrong in my mfa? :P

  3. #13
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,180
    Mentioned
    167 Post(s)
    Tagged
    3 Thread(s)
    Outcast, you are reading the query and adding the articles to the list object (inventory and purchase) but never reset before to do so.

    so in line 8 and 10 you need to reset the lists before fill them again, right?

    for the rest your example is consistent and should work.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  4. #14
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,156
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Ok FVivolo, I have updated the example: https://dl.dropboxusercontent.com/u/...c/inApp_v2.mfa

    Now the list does not seem to refill, but the purchase still buys the "test_shield" item even though in the events it is supposed to buy the "test_sword" item.

  5. #15
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,156
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Ok after some more testing it seems I actually get the right item, it is just the list object that updates wrong. I made a new example: https://dl.dropboxusercontent.com/u/.../BinApp_v3.apk

    Any idea why the list object does this? And are the list objects really necessary or can you just get rid of them?

    A problem I have though is that the application seem to stop responding many times and I get an error it needs to close. Especially on consuming items.

  6. #16
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,006
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    The list objects are not necessary at all, this is just a feedback mechanism so you can see the result being pulled from Google's servers when querying. You need to ensure you QUERY the server but you don't need to list. It's just purely for testing purposes.

  7. #17
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleXNA Export Module

    Join Date
    Jun 2012
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fantastic! I wasn't expecting something like this so soon. I was just coming to the forums today to exhaustively look for any information on IAP's, and here is this great guide!!!! I couldn't have asked for more. Thank you!

  8. #18
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleXNA Export Module

    Join Date
    Jun 2012
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I also wanted to ask- So if I want to do an unmanaged product, everything in this guide would be the same except I wouldn't have to do any of the inventory query stuff, right? It just seems it would be much easier to manage what items the player does or doesn't have inside the app rather than doing so much back-and-forth with Googleplay. The only downside is that the items wouldn't be account-wide.

  9. #19
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,006
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    I agree it is more useful to just handle the data yourself. However, you will still have to QUERY the inventory so your app knows what the user can/can't purchase at any given time...

  10. #20
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleXNA Export Module

    Join Date
    Jun 2012
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HELP! Anytime I drag the IAP object into a game, it has errors and can't make an APK. As soon as I delete the IAP object, it works again. Here is what the error report says:

    -compile:
    [javac] Compiling 337 source files to C:\Users\Scott\AppData\Local\Temp\And9723.tmp\bin\ classes
    [javac] C:\Users\Scott\AppData\Local\Temp\And9723.tmp\src\ Extensions\InAppControl.java:15: package Util does not exist
    [javac] import Util.Security;
    [javac] ^
    [javac] C:\Users\Scott\AppData\Local\Temp\And9723.tmp\src\ Extensions\CRunInAppAndroid.java:284: method does not override or implement a method from a supertype
    [javac] @Override
    [javac] ^
    [javac] C:\Users\Scott\AppData\Local\Temp\And9723.tmp\src\ Extensions\CRunInAppAndroid.java:303: bUnicode is not public in Services.CBinaryFile; cannot be accessed from outside package
    [javac] file.bUnicode = true;
    [javac] ^
    [javac] C:\Users\Scott\AppData\Local\Temp\And9723.tmp\src\ Extensions\InAppControl.java:417: cannot find symbol
    [javac] symbol : variable Security
    [javac] location: class Extensions.InAppControl
    [javac] if (!Security.verifyPurchase(signatureBase64, purchaseData, dataSignature)) {
    [javac] ^
    [javac] C:\Users\Scott\AppData\Local\Temp\And9723.tmp\src\ Extensions\InAppControl.java:593: cannot find symbol
    [javac] symbol : variable Security
    [javac] location: class Extensions.InAppControl
    [javac] if (Security.verifyPurchase(signatureBase64, purchaseData, signature)) {
    [javac] ^
    [javac] 5 errors

Page 2 of 4 FirstFirst 1 2 3 4 LastLast

Similar Threads

  1. In-App Purchases - a guide
    By Anders in forum iOS Export Module 2.5
    Replies: 97
    Last Post: 22nd February 2019, 01:27 PM
  2. XNA Getting Started Guide
    By JessBowers in forum XNA Export Module Version 2.0
    Replies: 4
    Last Post: 6th December 2012, 08:24 PM
  3. I need a guide to using qualifiers
    By Grim_Jester in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 1st August 2011, 03:04 PM
  4. The Definitive Guide to Mochi
    By Jeff in forum News
    Replies: 0
    Last Post: 22nd November 2010, 08:37 PM
  5. Best Guide
    By JollyPanda in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 14th August 2010, 10:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •