Javanie's Recent Forum Activity

  • You're welcome :)

  • Hi, Javanie

    thanks for your very useful reply and link. i will try it.

    but still, i wonder how to show ads without any cordova plugin instead. Does only using function/javascript inside C2 can not showing ads? why?

    please, if you can, make other tutorial to make event(condition) to call appID, bannerID and etc inside C2 project. :)

    Hi, You're welcome.

    You can't use just functions or java script only inside C2 to show AdMob Ads because to show AdMob ads, you need to import Google Mobile Ads SDK and native implementation. This can't be done only using C2.

    As you can read here : https://developers.google.com/ad-manager/mobile-ads-sdk/android/quick-start

    dependencies {
    
    implementation 'com.google.android.gms:play-services-ads:17.2.0'
    
    }

    cordova-admob-free plugin as a bridge to call and received AdMob APIs for access to mobile ad networks. And you need class implements for forwards the events to the JavaScript layer.

    For example I can't speak English and you can speak English then how can we communicate? to be able to understand each other, we need a translator. I am Java Script, you are Java and the translator is cordova-admob-free plugin.

    Edit: for example event(condition) to call appID, bannerID and etc inside C2 project please check on youtube video description, I put the download link for example capx.

  • If you mean showing ads without Construct 2 plugin and just use C2 function + javascript to showing ads , maybe this can help you youtu.be/SipmPV-tO94

    You can try cordova-plugin-admob-free fully open source, no Ad-Sharing and no remote control.

  • You're welcome :)

  • lol, sorry I tough you want to disable the iframe scrolling on iOS, sorry for my bad.

    Here the example, dropbox.com/s/k7efw6uvic048wl/ios_iframe_scrolling.c3p

    Edit 1 :

    Note: Test it on mobile, not on pc browser.

    Edit2 :

    Tested on xcode iOS simulator: youtu.be/Ue88MpTItSs

  • thanks for your suggestion!

    Where should I add: iframe src="" scrolling="no" ?

    Sorry, I am forget HTML5 no longer allows the scrolling attribute on an <iframe>. Use css instead, on your css : "overflow" auto change to "overflow" hidden.

    For iOS 9+

    html,
    body {
     overflow: hidden;
     position: relative;
    }
    
  • try add this <iframe src="" scrolling="no"></iframe> then combine with css:

    	.iframe {
    		overflow: hidden;
    	}
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello again! I'm trying to test ads with Admob, but nothing happens both when I preview in browser and when I tested a debug apk on my phone. I believe I have the proper interstitial ID set (however, am I supposed to put the App ID somewhere? I just pasted it into the banner ID since I don't use any banner ads). By the way, there is a third option on Admob for rewards that I wanted to use, but I don't see an ID slot for it in the CS2 plugin.

    I want to let the player earn a life by watching an ad. I have the event set so that when the life icon sprite is tapped, to preload interstitial ad. Then on interstitial received, to show it. But when I run my game, it doesn't do anything. Any thoughts? Thanks in advance!

    AdMob ads only can appear on native mobile platform, if you want to try I have video tutorial for "AdMob Rewarded Video Ads" https://youtu.be/xHjw3McA4z4

  • After adding this line to the config xml phonegap can build the apk for my project successfully.

    <plugin name="cordova-plugin-ad-admob" spec="1.0.112" />

    However, the resulting apk fails to work in emulator and in actual android phone. When I remove the admob object from the project then everything is ok.............

    Now cocoon is dead already, is there any new tutorial that can tell exactly how to get admob to work with contruct 2 games?

    Alternative way you can try, https://youtu.be/SipmPV-tO94 hopefully can help.

  • Hi, anytime and you're welcome.

    You can use shorten url like bitly or tiny.cc actually, example Scirra address on google map:

    https://www.google.com/maps/place/Scirra+Ltd/@51.4557473,-0.1948931,17.92z/data=!4m8!1m2!2m1!1sscirra!3m4!1s0x48760c8e76cfffff:0x4c00075f30af7814!8m2!3d51.456598!4d-0.195597
    

    then shorten using tiny.cc and the result http://tiny.cc/scirramap next step use this shorten url inside your app/game.

  • Make one variable with text type, example variable name is URL_Map then insert variable value:

    cordova.InAppBrowser.open ('https://maps.google.co.uk/maps?q=" & Geolocation.Latitude & "," & Geolocation.Longitude', '_system')

    Next step, use Browser Execute JS and use variable name "URL_Map" without quote.

Javanie's avatar

Javanie

Member since 1 Apr, 2017

None one is following Javanie yet!

Connect with Javanie

Trophy Case

  • 7-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

9/44
How to earn trophies