Fengist's Forum Posts

  • Ashley

    I got it working. I now have a 'Has Full Version' returning true after a purchase has been made with the test capx. But...

    If you follow the tutorial it will still refuse to build in XDK. Here's what I had to do.

    • I went through every XML for the C2 export and every XML that XDK created in the project directory and removed every reference to com.mcm.plugins.androidinappbilling.
    • I manually added the cc.fovea.plugins.inapppurchase plugin to the XDK project.
    • I wasn't sure if the plugin you recommended in the tutorial was causing the issue or not so I found the cc.fovea.cordova.purchase which seems to work the same as it required the Google API key and maunally added it to the XDK project. (found here: https://github.com/j3k0/cordova-plugin-purchase)

    The project built with no issues and now I'm able to get

    Store Available

    Listing Success

    Product Name

    Purchase Price

    Has Product

    So far cancelling the product purchase in Google Merchant Services hasn't reverted the Has Product back to false but that may just be a delay in Google's system and probably not a C2 issue.

    This bug may be an issue with XDK automatically adding the com.mcm.plugins.androidinappbilling. I don't know enough about it to say. I'm just hacking my way through and making semi-educated guesses. You may want to confirm all of this and decide whether it's still an XDK issue or a C2 issue and possibly update the tutorial and/or send a note off to Intel letting them know.

    One thing I noticed is that XDK does give a warning when you import the C2 project that adding plugins via the .XML has known issues.

    Anyway, thanks for pointing me in the right direction for a solution. I can now begin work again!!!

    And as for the Chrome and Amazon web... I did read that they were experimental and you didn't get a lot of feedback. I can live without them. Google Play is the big one on the block and once I get rolling again I can test the Amazon store to see if it works with a normal app and not just a web app. The basic plan was to have freemium versions on them. But if IAP doesn't work I can still use them for promotional put free versions on them to point the way to the Android app. If you do want them tested, add a note in the patch notes that get e-mailed out when you release updates (that way I'll see it) and I'll be happy to report any progress on them.

    Thanks again. I'm a happy coder now.

  • Right, here's the problem. If I follow your tutorial and install: https://github.com/poiuytrez/AndroidInAppBilling

    I get this when trying to build with XDK...

    Plugin "com.smartmobilesoftware.androidinappbilling" (3.0.2) installed.

    Plugin "cordova-plugin-legacy-whitelist" (1.1.0) installed.

    Plugin "cc.fovea.plugins.inapppurchase" (3.4.1) installed.

    Error: Plugin com.mcm.plugins.androidinappbilling failed to install.

    Which, for over a year now, you've been saying is an XDK issue.

    So, correct me if I'm mistaken in this logic but C2 is telling XDK to add that plugin via the XML and you're saying add the other plugin manually and any time you add the two to an XDK project it won't build them. It seems to me that it's the choice of plugins that C2 is telling XDK to use that's causing the issue.

    I've been ripping export .xml files apart and even adding both manually, XDK will build with either but not both.

  • Actually , no it shouldn't be that way. This is an official plug. It should work as stated, or at least have an official statement why it's currently not working.

    The problem is that he has nothing to tell that he is doing something wrong, or if it's broken.

    The plug has very little documentation, and no official examples.

    This isn't one of those novice expectations like one click deploy, or unlimited ram.

    Thanks Newt. I half expected responses telling me to find another way to do this. Had C2 not been as easy to develop in as it is, I'd have been screaming for a refund weeks ago. I still have hope.

    Ashley did state in one of my older post about this that the Chrome Web Store probably didn't work and that he was going to look into it for the next patch. I posted it along with the other issues as a 'reminder' after the next patch came and went.

    That's as close to anything official that I've gotten.

  • Over 3 months now since my first post on this and I'm no closer to a solution now than I was then. I fully realize that Ashley is the proverbial one-legged man in an ass-kicking contest but, since I'm unable to sell what I've created, I'm still waiting for an answer when I could have been clicking on the upgrade button.

  • So umm... I'm now over 2 months and still have no answer as to whether this is a bug or I'm doing it wrong.

  • Why don't you just use InstallSimple? InstallSimple.com. It's a free installer that packages everything into one .exe file. You give it to your friends, it installs your game, and it has an uninstaller so when they want to chuck it, they don't have to root through their hard drive to do it.

  • Turn your text into a bullet.

  • Saw in the patch notes the update to IAP so I upgraded to r220 beta and tried again.

    • Running on local host - Store found (boggle if I read the iap js correct it's assuming Chrome Web) - Store Listing Failed. In r219 I got Store not found.
    • Exported to Amazon and ran it on their web app tester - Store not found.
    • Exported to Chrome Web and uploaded to the store - Store not found.
    • Google Play - Unchanged. Finds the store, gets the product, does a proper purchase and then comes back with a false 'has product'.
  • Thank you. I'm trying. Been trying to figure this out for over a month now. https://www.scirra.com/forum/viewtopic.php?t=164992

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ashley, could I please get some response to this? I even sent an e-mail to support several days ago with no reply. Not being able to sell my product has stopped all work and makes me really, really regret buying C2. PLEASE.

  • And it's not working as an Amazon moble web app. I've uploaded it to my server, loaded it into the Amazon Mobile Web App tester and I'm getting Store Not Available.

    And apparently store available for google play will return true on start of layout. But store listing may fail several times before it finally comes back true.

    I've tried setting IAP testing to both true and false with the same results.

  • I realize it's the holidays and Ashley and the crew probably aren't around, but I've now been 3 months on a project that was finished in 2 weeks. But I can't sell the thing because I can't get IAP to work. So here I sit, regretting ever buying C2.

    Could I get some answer as to whether this is a bug or if I'm doing something wrong (and what, not obscure guesses.)

  • I've noticed the same thing with my app.

  • Well, it should only take one tick. It's not like I should need to repeat it every tick. Is store available triggers an event. And it's not like you can make 'has product' wait for a response. It has no event to trigger.

    As I said, it's finding the store (Google Play) and getting the listing. Has product is simply coming back false every time.

    I don't get what you're saying. That this all has to be delayed somehow?

    (This is with the product being purchased)

  • Ummm no, why should it be? It's obviously getting the response, at least in Google Play. If I want to know if the app is paid for before I show my menu, it seems pretty logical that I should put it in the startup. And if I'm waiting for listing success it shouldn't matter.