Fengist's Forum Posts

  • I would but, the available menu items are based on whether it's purchased or not.

  • Finally, someone looked and can't find anything wrong. Thanks newt

    I know that it's getting the store listing. This is in a 'loader' layout. It won't even switch to the next layout (which it it doing) until one of these conditions are true. I even know that it's finding the product as the ProductName('fullversion') comes back with the appropriate product name. And yes, I learned about the restorePurchases. It's doing that now. And I know it's realizing the product is purchased because I'm getting a 'purchase failed' error from the IAP if I try to purchase it again.

    I just wanted someone else to confirm that this code looked good before I went to the headache of tracking down a bug that isn't one I created. Everyone else seems to think that the IAP is working fine yet I'm completely stuck.

  • Pretty sad when you spend 3 weeks trying to get IAP working on a finished project and still can't.

  • Sorry, misread. the 16,400 is texture size and is video dependent. Some, apparently, can only do 4k.

  • With WebGL turned on the limitation is somewhere around 16,400px (confirmed by Ashley). Without it, I haven't found a limit. I loaded the entire Kings James bible into a text object at 20 px font height and, it displayed it, if that's any indication of size.

  • I guess I've asked too many questions or they're getting too difficult. I can't seem to get an answer any more.

  • On startup I do an isStoreAvailable>>requestStoreListing. And then run this code:

    and hasProduct keeps coming back false even though the product was purchased. The purchase product part of my code worked perfect and the Google Play transaction is showing it purchased. I've checked the spelling and case of the 'fullversion' numerous times, it is correct.

    What I'm trying to accomplish is to first check to see if the app is paid for by checking against the store and if that fails and the user is offline, it falls back to a stored setting. ButtonCount is a dictionary entry that records whether the product is purchased or not and saves it to local storage. When it's loaded, it sets the global DemoVersion to 1 or 0 based on 'ButtonCount' if the store is unavailable.

    DebugDict is so I can figure out what it's doing.

    Also, what does 'restorePurchases' do? It's not explained terribly well in the manual.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ya well, this thing has over 200 events and 1000+ actions.

    Here's what I was basing that on, the export to cordova's xdk additions.xml

    <intelxdk:plugin intelxdk:name="cc.fovea.plugins.inapppurchase" intelxdk:value="cc.fovea.plugins.inapppurchase" />

    <intelxdk:plugin intelxdk:name="com.mcm.plugins.androidinappbilling" intelxdk:value="https://github.com/maxmoore14/AndroidInAppBilling.git" />

    I'm pretty sure the fovea gets added in anyway because of the xml.

  • Thanks KYATRIC.

    I've got com.mcm.plugins.androidinappbilling which is the one you suggested in the tutorial and cc.fovea.plugins.inapppurchase which is in the .XML export. It works in the build but debug lines it out for some reason (XDK).

    Purchasing seems to work fine. The merchant account verifies the purchase. I just haven't figured out how to detect the purchase when the app is reloaded. I've been trying IAP.isStoreAvailable>>IAP.requestStoreListing & IAP.onStoreListingSuccess>>IAP.hasProduct. Success is being called but, hasProduct it comes back false every time.

    I've checked the spelling and case like a dozen times now. It's the same as the IAP.purchaseProduct

  • Ok, just discovering that I guess I'm using Has.Product impoperly...

    I'm using has.product to check and see if the customer has purchased the product. I assume that's the correct usage. However, even when the product has been purchased, it's coming back false.

    Is there any way on startup to determine if a user has purchased an IAP other than setting a vairable? I see there's the restore purchases but it doesn't make a lot of sense unless, it triggers on purchase success.

  • Thanks Kyatric, so does this mean that Has.Product "" doesn't respond properly? That's the issue I'm having. The user can purchase but when it checks for Has.Product it comes back false.

  • I'm curious, have you tried this?

    In your browser invoke download, instead of a file name, try dictionary.asJSON.

    I know it'll allow it, whether it works or not...

  • Kyatric

    What exactly is and isn't working in the IAP. This may be directly related to issues I'm having?

  • I'm noob at C2 this but 2 things come to mind that I'd try.

    If you have the local file name from the browser download and you can figure out how to turn that into a url, you can pass that to an Ajax Request and then, load it into a dictionary as a json. I'm using the Ajax request to load file chooser selections into a textbox.

    If Twitch allows Ajax connections (it'll throw an Ajax on error if it doesn't) you could bypass the browser and load the ajax results of get or post straight into a dictionary as json.

    I'm getting pretty disillusioned about having purchased C2 right about now. I've been sitting on a completed C2 project for almost a week now. But it seems the only damned thing I can get it to work with is HTML5 and NW.js. And, the HTML5 only works if I don't want to have in-app purchases.

    Here's part of the nasty-gram Amazon shot back to me.

    We've determined that your app uses an older version of the IAP SDK. This may result in inconsistent behavior of IAP on the customer's device. We would suggest that you update your code to IAP v2.0. You may download the latest SDK from https://developer.amazon.com/public/resources/development-tools/sdk.[/code:2glkuadk]
    
    And since it seems damned near impossible to test an Amazon app before it's published, I have no clue if it's gonna work there or not.
    
    Now that I have the project finished it seems the only options I have to getting it into an .apk is this buggy piece of XDK crap that's half finished. An Adobe product that won't even get past the first bad plugin plus, wants a monthly fee for anything more than one app, or Cocoon which I'm refusing to even try on the principle that they hijack your app with a $500.00 splash screen.
    
    300 hours into C2 and I'm this close -><- to giving up and calling it a total waste of my time and money.