HZGaming's Forum Posts

  • Recently my app was rejected from the iOS store again because it did not include a restore purchases button. The only IAPs in my game are a few consumable options to buy more in game currency but they are saved to the local storage. How do I make a restore purchases button? Also what would it do in my game?

    ***EDIT*** Okay so after making a restore purchases button and playing around with the restore action, the restore purchases button in my game adds on the amount of coins that the player has bought but it continuously adds on coins even if the device wasn't switched or if the restore purchases button is being clicked over and over again. For example, when I buy 1000 coins, I can click the restore purchases buttons as many times and it will continue adding 1000 coins. How do I test if the device was switched? I'm testing in testflight if that helps.

    Also, some possible solutions I've tried to think up is adding a variable that prevents the player from clicking the restore purchases button more than once and then resetting the restore purchases button to make it clickable again when the player buys a new product but I'm almost certain this wouldn't work. Has anyone found a solution or knows how to use the restore purchases action?

    It's been almost two months of troubleshooting the IAP object so I'm desperate for answers. Any help is appreciated.

  • I've alerted Kyatric who has alerted Ashley as well. I'm currently running r224/the newest beta version.

  • Okay, sorry for the multipost in a row. Thanks for confirming the issue though and letting Ashley know Excited for when the bug will be fixed

  • Apparently, the IAP object only works in Android but not iOS. Another link about the issue.

    I think the issue either has to do with Cordova or with Apple. I already paid 99 dollars for my apple account and this issue is preventing me from uploading my app to the appstore Maybe Ashley or Kyatric know a solution?

  • Here are some links to other forum posts that are experiencing similar problems.

    I haven't been able to find any answers to this problem? Anyone know the solution?

  • Recently, my app was rejected from the appstore because my IAP purchases did not activate. Upon investigating, I found that the On Store listing success condition does not work. I have a global variable that will be changed to 1 if the store listing is successful and if it fails then it is set to -1. Otherwise, it stays at 0. In my game, whenever you click the buy 10 coins button for 99 cents, it will also test if the global variable is 1 or -1. Then, depending on the outcome, it will buy the product or it will produce a error message sprite. However, when testing on my iPhone through testFlight, the global variable stays at 0 and doesn't change meaning the store listing didn't fail or succeed. I don't think it's an issue with my code. I've also seen other topics about this mostly by BinaryPanda but no actual answers were submitted. Has anyone ever gotten IAP to work on iOS? Also, all the product names/id are correct. I've triple checked of that so I don't what to do. Please help!

  • I'm having the same problem where the store listing on success/failed does not work. I also get the same error. Have you found a fix to this?

  • For my game I've been struggling to use the native IAP object. It's been rejected from the Appstore because the IAP don't work. I'm using phonegap to build and so I test the .ipa file on my phone and whenever I start my game it asks me to verify my apple ID which I do but it always says I failed to verify because I entered the password wrong which I didn't. Also whenever I click the buy product button that should trigger the IAP, nothing happens. How can I fix this? Note I also edited the config file to the cordova plugin because the old one doesn't upload to phonegap.

  • I made an iPhone app and exported it with phone gap. It uses iAd object, gamecenter object, and IAP object. The ipa file runs very smoothly on my phone and on several other devices so I suspect that the IAP or leaderboards from gamecenter are causing the issue. When I try to use the IAP while testing, a message Sprite I created shows up indicating that the purchase failed so I think the IAP works fine. The leaderboards sometimes shows the leaderboard but it doesn't let me sign in on test mode or on my phone. I urgently need help. Thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So when exporting to cordova i chose handset only since my game was in a 4:5 ratio and i filled out all the stuff for itunes connect but it asks me for ipad screenshots because my binary apparently indicated it. How can I fix this?

  • Every time I try to build my game for iOS through Cordova and Intel XDK, the build always fails but it doesn't give me a reason why. All the plugins work and all it says is an error occurred. Any Ideas on how to fix? This is what I get:

    The build failed.

    An error occurred while building the application. Verify your build assets are correct and try again.

    You can view the detailed log of the iOS build here

    Build Log:

    Building a Cordova 5.1.1 application.

    The application name is "FlappyBirdsReturnTest3"

    The package name is "not.yet.specified"

    Will use the provisioning profile for "adhoc"

    Plugin "cordova-plugin-device" (1.1.0) installed.

    Plugin "cordova-plugin-splashscreen" (2.1.0) installed.

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

    Plugin "com.mcm.plugins.androidinappbilling" (3.0.6) installed.

    Plugin "com.rjfun.cordova.plugin.iad" (0.1.8) installed.

    Plugin "uk.co.ilee.gamecenter" (0.3.3) installed.

    Targeting iOS version 6.

    Error: A build error occurred. Check the build log.

  • grigrizljac oh yes that solved the issue. Thank you! Hahaha I'm sure however that you're aware of the audio distortion on iOS devices which is a shame. I'm considering releasing my games with minimal sounds. I'm also asking around on the intel forums to hopefully find a solution.

  • Update: the sound plays when headphones are plugged into the iOS device but don't play without headphones or earphones. I still don't know why the sound isn't playing when there aren't earphones plugged in.

  • In my game, I have imported both ogg files and m4a files but I can only play the ogg files inside C2 because the m4a options do not show up in the list. When I export and try debugging on my iPhone, no sounds are played even though I have the m4a files in construct 2. Any ideas on how I can fix this?

  • The IAP, iAd, and Gamecenter objects from C2 do not display in the test/debugging on my device. Also there is no sound in my game. I have imported both .ogg files and . m4a files into my game at C2 but neither are being played. Help?