Admob is not working anymore and crashes apps.

Discussion and feedback on Construct 2

Post » Thu Mar 10, 2016 7:56 pm

BackendFreak wrote:It works fine with cranberries phonegap JS library but has some problems with cordova JS library I guess. I have screen freezes sometimes when interstitial pops out, while using C2 AdMob and Cordova JS.


Well I guess that's a no to both since the plug isn't supported on Phonegap officially.

As always if you want it fixed, better make a bug report, as Ashley's not likely to fix anything he doesn't know about.
Image ImageImage
B
168
S
50
G
169
Posts: 8,281
Reputation: 108,191

Post » Thu Mar 10, 2016 9:59 pm

Mirlas wrote:
BackendFreak wrote:It works fine with cranberries phonegap JS library but has some problems with cordova JS library I guess. I have screen freezes sometimes when interstitial pops out, while using C2 AdMob and Cordova JS.


Please, where I can download that ?.



It's in the official manual https://www.scirra.com/manual/184/admob
Name: AdMob Plugin
Plugin ID: com.cranberrygame.phonegap.plugin.ad.admob


newt wrote:Well I guess that's a no to both since the plug isn't supported on Phonegap officially.

It is officially on Scirra. There's nothing to report IMO. The problem is when you use C2 plugin and JS which is NOT officially supported by C2. So I doubt Ashley would consider fixing it... especially when the code itself is a third-party library.

So to wrap up:
Case 1
C2 official AdMob plugin + cranberry Cordova AdMob plugin (JS) - gives problems sometimes

Case 2
C2 official AdMob plugin + cranberry Phonegap AdMob plugin (JS) - works fine

Case 3
Cranberry C2 Cordova Admob plugin + cranberry Cordova AdMob plugin (JS) - should work fine (haven't test it myself yet

Officially only Case 2 is supported and I didn't have any issues with such combination.
ImageImageImage
B
27
S
16
G
73
Posts: 974
Reputation: 41,157

Post » Thu Mar 10, 2016 10:26 pm

BackendFreak wrote:
Mirlas wrote:
BackendFreak wrote:It works fine with cranberries phonegap JS library but has some problems with cordova JS library I guess. I have screen freezes sometimes when interstitial pops out, while using C2 AdMob and Cordova JS.


Please, where I can download that ?.



It's in the official manual https://www.scirra.com/manual/184/admob
Name: AdMob Plugin
Plugin ID: com.cranberrygame.phonegap.plugin.ad.admob


newt wrote:Well I guess that's a no to both since the plug isn't supported on Phonegap officially.

It is officially on Scirra. There's nothing to report IMO. The problem is when you use C2 plugin and JS which is NOT officially supported by C2. So I doubt Ashley would consider fixing it... especially when the code itself is a third-party library.

So to wrap up:
Case 1
C2 official AdMob plugin + cranberry Cordova AdMob plugin (JS) - gives problems sometimes

Case 2
C2 official AdMob plugin + cranberry Phonegap AdMob plugin (JS) - works fine

Case 3
Cranberry C2 Cordova Admob plugin + cranberry Cordova AdMob plugin (JS) - should work fine (haven't test it myself yet

Officially only Case 2 is supported and I didn't have any issues with such combination.


So what you mean is that if the ID laying in the manual is used, the plugin works correctly?.
Thanks for the info :)
B
29
S
12
G
21
Posts: 782
Reputation: 14,411

Post » Thu Mar 10, 2016 11:25 pm

Why do you need to use both the official, and Cranberry Admob plugs?
Image ImageImage
B
168
S
50
G
169
Posts: 8,281
Reputation: 108,191

Post » Fri Mar 11, 2016 12:26 am

C2 official plugin doesn't work by itself. You need to attach the JS library. By default (I mean according to manual instruction) it's supported with cranberry phonegap JS. But this library is not attached by itself, you have to add it manually.
ImageImageImage
B
27
S
16
G
73
Posts: 974
Reputation: 41,157

Post » Fri Mar 11, 2016 8:31 am

Thanks @BackendFreak
and @chadorireborn

After I added the Cranberrygame Admob plugin, I am unable to build my game at all! And strangely the XDK log doesnt mention anything about Admob. It says duplicate reference for "com.google.android.gms" , which when I googld I found it refers to "Google Play Services"

And notice in the below error log there are two google[lay references. Not sure if this is the issue. I had the same setup with official Admob plugin but never got any build error.

BTW I switched to cranberrygame plugin becuase on iOS when an Ad is clicked and user comes back, the game restarts! I was hoping this issue is not present in Cordova plugin

Building a Cordova 5.1.1 application.
Building with cordova-android 4.1.1.
The application name is "Last of the Survivors"
The package name is "com.gamessolidrock.lastofthesurvivors"
Preference android-signed set to false. Application will not be signed.
Using Crosswalk Embedded 15
Plugin "cordova-plugin-splashscreen" (2.1.0) installed.
Plugin "cordova-plugin-device" (1.0.1) installed.
Plugin "cordova-plugin-device-motion" (1.1.1) installed.
Plugin "cordova-plugin-payment-iap" (2.0.39) installed.
Plugin "cordova-plugin-ad-adcolony" (1.0.40) installed.
Plugin "cordova-plugin-ad-chartboost" (1.0.75) installed.
Plugin "cordova-plugin-inappbrowser" (1.0.1) installed.
Plugin "android.support.v4" (1.0.0) installed.
Plugin "com.google.playservices" (21.0.0) installed.
Plugin "cordova-plugin-game" (1.0.105) installed.
Plugin "cordova-plugin-extras-google-play-services" (1.0.3) installed.
Plugin "cordova-plugin-ad-admobsdk" (1.0.31) installed.
Plugin "cordova-plugin-ad-admob" (1.0.106) installed.
Plugin "cordova-plugin-legacy-whitelist" (1.1.0) installed.
Plugin "cordova-plugin-crosswalk-webview" (1.4.0) installed.
App name updated to [Last of the Survivors]
Updated "minSdkVersion" with "16"
Updated "targetSdkVersion" with "19"
Updated "installLocation" to "auto"
Added "screenOrientation" to "landscape"
Updated "versionCode" to "20050"
Updated "versionName" to "0.5"
Added "debuggable" to "false"
Error: A build error occurred. Check the build log.
Create your own Isometric Runner Game using C2:

Image

Check out my game "Last of the Survivors":
Play Store
App Store
B
57
S
11
G
2
Posts: 412
Reputation: 5,204

Post » Fri Mar 11, 2016 2:20 pm

I will do some tests today, and let you know how it works for me.
ImageImageImage
B
27
S
16
G
73
Posts: 974
Reputation: 41,157

Post » Fri Mar 11, 2016 4:06 pm

@SamRock - I'm sorry but I am currently not using admob and can't test it right now. But maybe the others can help you.
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
63
S
18
G
90
Posts: 1,118
Reputation: 59,540

Post » Fri Mar 11, 2016 4:34 pm

I just built my game with C2 AdMob plugin + phonegap JS (as manual describes). No issues at all.
ImageImageImage
B
27
S
16
G
73
Posts: 974
Reputation: 41,157

Post » Sat Mar 12, 2016 4:38 am

Here's a simpler and more lucrative option if you're having a hard time...

https://www.scirra.com/tutorials/4896/s ... arning-ads
B
82
S
32
G
7
Posts: 281
Reputation: 10,685

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: David181, Yahoo [Bot] and 13 guests