jtibbles's Forum Posts

  • 7 posts
  • > Has anybody got it working using Phonegap Build with Construct 2? I'm not getting an error but I'm not seeing banners either

    >

    i think the problem of the banner not showing is something related to admob. because not just who use construct 2 have that problem. i have an app build by android studio and sometimes i see banners , sometimes not. and many other people have the same problem .

    Yes you are right. My ads have started working. Apparently to minimise the problems you should do this:

    -Make sure you have updated AdMob with your payment details

    -Make sure that the ads you created in AdMob are banner ads.

    -Check your AdMob dashboard to see the status of your ads, are they active?

    -Verify you used the correct Ad Unit Id.

    -Give it 24 hours, it can take time for an ad to become active in your region

  • Has anybody got it working using Phonegap Build with Construct 2? I'm not getting an error but I'm not seeing banners either

  • I think I've found the solution. CS2 + Phonegap Build for Android:

    Export the project to Cordova.

    Then in the config.xml remove this line:

    <plugin name="com.mcm.plugins.androidinappbilling">

    ...Instead add this:

    <plugin name="cc.fovea.cordova.purchase" spec="~7.1.0">

    <variable name="BILLING_KEY" value="YOURBILLINGKEYHERE" />

    </plugin>

    ...you don't need to bundle that plugin with your zip file for Phonegap Build as it already uses it.

    The problem seemed to be that Phonegap Build no longer supports the com.mcm.plugins.androidinappbilling plugin.

    Seems to work for me. Let me know how you get on.

  • Hi, I've solved this issue for Android:

    In the config.xml remove this line:

    <plugin name="com.mcm.plugins.androidinappbilling">

    ...Instead add this:

    <plugin name="cc.fovea.cordova.purchase" spec="~7.1.0">

    <variable name="BILLING_KEY" value="YOURBILLINGKEYHERE" />

    </plugin>

    ...you don't need to bundle that plugin with your zip file for Phonegap Build as it already uses it. The problem seemed to be that Phonegap Build no longer supports the com.mcm.plugins.androidinappbilling plugin.

  • Khaz, any update qwith this I'm the same situation.

    I get "missing BILLING_KEY" when creating the APK with Phonegap Build. There is nowhere for me to add the key.

  • I assumed if I referenced "FamilyName" object within the foreach loop then it would be referencing the current object that it is cycling through ie. if 3 objects in a family:

    foreach (FamilyName object){

    sometext.setText("We are currently looking at FamilyName object ID Number "& FamilyName.ID )

    }

    So the first iteration would export the ID of the first FamilyName object, then the second cycle would export the ID of the second FamilyName object, then the third cycle would export the ID of the third FamilyName object

    However this isn't the case. Every cycle of "FamilyName" would point to just the first object.

    I eventually gave up with families so now I have 10 separate objects and therefore 10 lots of code.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I would also like to know the answer. I have 20 items that are part of a family. I need to cycle through each one as each has their own states which affects other things. Therefore I need to reference the "self" value of the current object I am checking. For example

    if obj1 has reached certain destination, set some_array.At(obj1.xpos,obj.ypos) to TRUE

    I don't want to have to write the same line of code 20 times, so I want somethin along the lines of:

    for each(obj){

    current_obj = this obj

    if current_obj has reached certain destination , set some_array.At(current_obj .xpos,current_obj .ypos) to TRUE

    }

  • 7 posts