haptic9's Forum Posts

  • I was unable to get the official iAP object working. According to posts I read on the forum some of the conditions don't work with the offical iAP, like 'On purchase success'. According to a post I read by Kyatric you can get it working by using the 'has product id' condition, but I wasn't able to get it working with that.

    So I switched to using the Cranberrygame CordovaiAP plugin. I have that working for Android, but I haven't yet succeeded in getting it to work for iOS.

    I'll be working on this exact problem today. I *think* other people have the CordovaiAP working on iOS, but im currently looking into it.

    Two useful example capx files can be found in this tutorial by Kyatric and the 'CordovaInApp' example posted by

    These two files should give you an idea of how to set up the events to get iAP working.

    I'd be very interested to hear advice from anyone who has the CordovaiAP working with iOS.

    alright awesome i guess ill purchase the cranberry pack and check out iap as well and see if i can get ios to work too

  • Artpunk

    The first few times i built with xdk i got errors, mostly with the androidinappbilling. I actually took out the cordovagame and it went away.

    I tried with both official and cordova plugins but i still got the same error. Right now i just have the cordovaAdmob and cordovaIAP.Build went through.

    I think i have problems with some of my logic, cause once i downloaded the .arm7 to my phone, i have several issues with some buttons. Mainly the options with turning music and sound off.

    Also, the mobile keyboard overlaps the textbox for the player to input their name.

    Gonna try and edit some things today, hopefully. And go back and try and add and correct the cordovagame with your suggested post.

    I published the alpha test yesterday but none of my testers can download it. It says 'app not available'.

    I have the same issue as you with the official plugin and the cordova one there doesnt seem to be a proper answer if there is any working in-app plugin currently or not.

  • Is there any working iap plugin currently for both ios and android? Been out of the community for awhile so messed around with c2 iap but I believe it doesnt work at all.

    Can anyone confirm if cranberry's purchased plugin works on intel xdk or cocoonjs for both platforms.

    https://www.scirra.com/store/construct2 ... ugins-1662

  • Hi,

    We have fixed the result zip file size. Now when compiling with Canvas+ you'll get just one APK for ARMv7 architectures as Canvas+ does not support x86.

    Great to hear its been changed back and improvements made on performance too

  • > 2. I noticed that there are only 2 apks now; it seems arm7 and x86 builds have been merged. I don't know why this was done, but I would strongly discourage bloating the apk by bundling in both runtimes, or at least make this an option we can disable.

    >

    > For an android user on an x86 platform, this would effectively make my game 250% larger than the platform specific build.

    >

    > On mobile we often go to great lengths to shave of a couple MBs off the final file; it's a trivial process to upload 2 apks vs 1.

    >

    >

    Yes, they should split the file again, because now it's getting size similar to the Intel XDK.

    My game apk size

    Cocoon - before the merge - 15mb

    Cocoon - latest export - 23mb

    Intel XDK - 30mb

    On one export the fps was low, now it's ok, than I got black screen, it's ok now. On one export, the game is fullscreen, but it's scaled up too much, opposite to the problem before. The game is full screen, but I'm seeing just upper left quarter of the game. I'm still doing testing and trying various settings, it's taking a lot of time.

    I would like to hear a word from ludei about this as the main reason why I perfer cocoonjs is cause of the filesize and performance. But now I feel it may not be worth it if the file size is almost on par with intel xdk and scaling being a major issue on tablets and other larger scale devices... not to mention the sound issue....

    Though these will be fixed in official release if the file size is still large... yea,,,,

  • ludei

    Downloaded the latest build...and it works! Fullscreen on the debug app. Getting great perf.

    Couple more issues/questions:

    1. Now that I'm paying attention, I'm noticing a lot of latency on triggering sounds in game, aprox 500ms worth. Definitely more than is usual for android, and to the point of being very distracting for sounds that originate from collisions.

    I googled and found some old references to that problem, but nothing recent. Any updates on this? Anything we can do on our end?

    2. I noticed that there are only 2 apks now; it seems arm7 and x86 builds have been merged. I don't know why this was done, but I would strongly discourage bloating the apk by bundling in both runtimes, or at least make this an option we can disable.

    For an android user on an x86 platform, this would effectively make my game 250% larger than the platform specific build.

    On mobile we often go to great lengths to shave of a couple MBs off the final file; it's a trivial process to upload 2 apks vs 1.

    Noga

    Can you retest w/ newest builds?

    i agree I feel the previous 2 apks was better this increased the file size download and instal to sizes I dont want lol....

  • ludei the file size's for the apks seem to have gotten larger. My previous apks were 10.5mb , 6.5mb for the 2 files now its 16mb for a single file? when installed its 31mb as compared to 25 mb installed

  • ludei

    here's a screenshot from thatserafimkid demonstrating the same issue

    >

    > This is the error i get in the developer app.

    > -I've exported with cordova,

    > -set minify off

    > -deleted the config and intel addition files

    > -put everything in a www folder and zipped it(ive also tried it without putting it in a folder)

    > -I uploaded to the cocoon site, selected canvas +

    > -removed the whitelist plugin(I also deleted all cranberry plugins from my project)

    >

    > I don't know where else to go from here. I keep getting a black screen and that error in the debugger.

    >

    > Any suggestions

    >

    Had the same issue before turning of minify worked for me and having webgl turned off, the only plugin I had in cocoon io was the Android Canvas Plus Plugin. If your using atp ads make sure to add the native admob plugin too or else you will get a blackscreen

  • > By version code you mean in this page right?

    >

    Yes. Try compile new apks with version code 15 and upload them to the Google dev console and deactivate both 12 and 14.

    Worked like a charm thanks

  • > Problem is i never had any versions previously, and the version 12 is the arm file that was compiled from cocoon io.

    >

    What's that version 14? There's no native platforms filled. It counts version 14 as an arm version, so it wants you to deactivate the version 12. You'll have to change the version number in Cocoon from 12 to 14 or higher or delete version 14 or reupload version 14. It should look something like this.

    > 60014 (1.0.1) x86
    20014 (1.0.1) armeabi-v7a
    [/code:36pxk1m3]
    

    By version code you mean in this page right?

    Im not sure why the version codes are messed up i compiled both via cocoon.io and started a fresh listing in my dev console in googleplay

  • > Appodeal now building succeeded with cocoon.

    >

    Thanks, I'll try it out.

    You'll have to deactivate version 12.

    Problem is i never had any versions previously, and the version 12 is the arm file that was compiled from cocoon io.

    Here is the screenie of it

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • After compiling my game and getting everything to work I recieve the following error in developers console advanced mode when uploading both the x86 and armv file

    "This configuration cannot be published for the following reason(s):

    Version 12 is not served to any device configuration: all devices that might receive version 12 would receive version 14.

    Some devices are eligible to run multiple APKs. In such a scenario, the device will receive the APK with the higher version code."

    Anyone know whats causing the issue?

    ludei

  • I don't minify script, not sure if that helps or not.

    The only configuration setting I changed from default is WebGL to off/no

    IT worked! seems minify was the problem thanks alot Ed been at it for a day or so now lol

    Noga try removing minify when exporting it works for me now

  • I don't minify script, not sure if that helps or not.

    The only configuration setting I changed from default is WebGL to off/no

    Giving it a try without minifying script now and ill see how it goes

  • I was able to get Admob ads working fine, but I only tried on Android, not iOS. The only plugins I have installed in Cocoon.Io are Admob for Android and Android Canvas+

    I've done the same too only those plugins.

    Here is my configuration when I export the game as cordova on C2

    what are your configuration settings in C2?