Is Construct 2 AdmobAds (cordova-plugin-ad-admob) deprecated? HELP!

  • The Construct 2 AdmobAds gives errors on Cordova CLI and on Phonegap Build too.

    Is this plugin deprecated?

    Does anyone know how to solve this problem?

    Thank You! :)

    Cordova CLI errors log:

    Discovered plugin "cordova-plugin-ad-admob" in config.xml. Adding it to the project

    Installing "cordova-plugin-ad-admob" for android

    Failed to install 'cordova-plugin-ad-admob': CordovaError: Failed to fetch plugin github.com/cranberrygame/cordova-plugin-ad-admob-sdk via registry.

    Probably this is either a connection problem, or plugin spec is incorrect.

    Check your connection and plugin name/version/URL.

    Error: cmd: Command failed with exit code 1 Error output:

    npm ERR! code ENOGIT

    npm ERR! Error while executing:

    npm ERR! undefined ls-remote -h -t github.com/cranberrygame/cordova-plugin-ad-admob-sdk.git

    npm ERR!

    npm ERR! undefined

    npm ERR! No git binary found in $PATH

    npm ERR!

    npm ERR! Failed using git.

    npm ERR! Please check if you have git installed and in your PATH

    ...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can someone help me?

  • Alternative method you can try youtu.be/xHjw3McA4z4 hopefully can help.

  • Hi Javanie,

    Thanks for the tip.

    I'll test that.

    But anyway I'd like to know what's up with the official admobAds construct 2 plugin.

    Does Scirra no longer support this plugin that is part of Construct 2?

    Any information or help will be appreciated.

    Thank You!

  • Hi, you're welcome.

    I can't answer your question about "Does Scirra no longer support this plugin that is part of Construct 2?", maybe this post can answer your question:

    https://www.construct.net/en/blogs/construct-official-blog-1/launching-the-new-construct-3-runtime-1048

    Scroll down until you find heading "THE FUTURE'.

  • Thanks mate!

    I followed your video and the Admob Free (Banner / Interstitial) works well.

    The only thing that doesn't work in my app, is the "Open URL in a new Window" browser action.

    It also doesn't work on Cordova CLI.

    Can you please test in a simple Construct 2 project, this Browser action, just to see if you have the same problem?

  • Hi, no problem.

    Just use browser Execute javascript then add (select one):

    //For open URL using system browser use this:

    "cordova.InAppBrowser.open('https://www.construct.net', '_system');"

    //For open URL using Cordova InAppBrowser use this

    "cordova.InAppBrowser.open('https://www.construct.net', '_blank');"

    Also don't forget in your config.xml have:

    <access origin="*" />

    <plugin name="cordova-plugin-inappbrowser" />

    Edit:

    Note: This will not working when you run layout preview on PC Web browser.

  • Thanks, almost done!

    My app has 2 links.

    One is for Google Play and it works now.

    The other one is for Google Maps with coordinates, but doesn't work.

    I think the problem has to do with the quotes.

    I tested it with single and double quotes, and these combined, but I must be doing something wrong here.

    "https://maps.google.co.uk/maps?q=" & Geolocation.Latitude & "," & Geolocation.Longitude

    How do I add this link in the browser Execute javascript below?

    "cordova.InAppBrowser.open ('https://www.construct.net', '_system');"

  • 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.

  • The app now opens google maps, but doesn't assign the coordinates.

    I think it's a quotation marks problem.

    Maybe there is no solution.

    Anyway, Thank you for your help and your time.

  • 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.

  • Hi!

    I implemented the geolocation example of construct 2 in my app.

    Here the coordinates are dynamic, and just like in the C2 example, I have a "Show On Google Maps" button that displays with these coordinates your location on the map.

    In the pc works well with the browser action "go to URL", but as I said before, now in android (Cordova CLI) no longer works, and even with javascript I can not make the connection correctly to the map.

    It would be interesting to test in Construct 3 to see if everything works fine, but for this I have to subscribe a paid plan, and I have no guarantee that it will work.

    There are more and more features in Construct 2 that is no longer working.

    It's a shame that Scirra is abandoning C2 and its users.

    This way I feel like I threw my money in the trash to buy the C2 license.

    I think Scirra should somehow compensate C2 users who have subscribed or are considering subscribing a Construct 3 plan.

    Anyway...

    Thanks for your time, mate.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)