Admob game freezes

  • Hi Scirra community,

    I got a problem that I just can't solve and I tried a lot but perhaps I am simply missing something here.

    The problem: after my game has shown a interstitial it sometimes(20%) freezes up the game/screen after returning to the game.(so I clicked the x in the ad and it returns to the game but in a state as it was before the ad was shown.) When I swap tabs on my devices(press the right square) and click on the tab on which the game is, it works again as if it never froze up.

    Solutions I tried but failed:( : to restart the layout with the on dismissed event. I also tried to restart layout action right after the shown ad action. I don't need to restart the layout but I tried to solve it like this, however it failed. I also tried to remove the entire on dismissed event but the result was not different.

    None of this happened when I have no internet connection.

    It was tested on a Moto G and on a Nexus 7.

    I would really appreciate it if you know a solution.

  • Had the same problem when I was using C2 official AdMob plugin + Cordova AdMob library. Once I changed Cordova AdMob to Phonegap AdMob library, everything works fine.

  • Thanks for your response. Can I change that in Intel xdk at plugin management? If you could explain me how to change it, that would be awesome.

  • If you set it up already then you know how to do this. You had to set up a plugin in C2 and you had to set up a library (plugin) in Intel XDK right? What plugin do you use in C2 and Intel XDK?

  • Well in c2 its the standard admobs. And in Intel xdk i use the plugin management but I will need to know the code/line to add the plugin from phonegap just like I needed for the Cordova one, but I might be able to find that on the internet. But are you using a separate plugin for C2 for the ads?

  • You should basically do exactly like manual says.

    https://www.scirra.com/manual/184/admob

    C2 official AdMob plugin + phonegab plugin i Intel XDK.

  • Thanks for the help. I'll try it out. I'll let it know in this thread if it solves my problem.

  • Well I did what you said, but now I am getting an old error I had before. It is in this thread.

    I already thought I used phonegap before for ads but wasn't sure. Then I was told to use cordova wich solved the problem at that time. But gave me a my current problem. Perhaps in all your wisdom you know what I am doing wrong here.

  • What plugins you have added in Intel XDK? Can you post a screenshot?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sure

  • Hmmm I see you have different Device and Splashscreen plugin. Try to remove them and add again.

  • Thanks for all your effort, I tried it. But it didn´t work I also readded the vibration plugin just to be sure. But it made no difference. Also no difference with the crosswalk 16. Perhaps you can have a look at my buildlog. Or perhaps you have a different suggestion. It's so weird this issue.<img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">

    http://www.filedropper.com/buildlog

    If you prefer a different uploader let me know. Sadly the buildlog is to big/long to post here.

  • Can you post the content of your intelxdk.config.additions.xml file?

  • <intelxdk:plugin intelxdk:name="game" intelxdk:value="https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.game" intelxdk:id="com.cranberrygame.phonegap.plugin.game">

    <intelxdk:param intelxdk:name="APP_ID" intelxdk:value="913458895970" />

    </intelxdk:plugin>

    <intelxdk:plugin intelxdk:name="org.apache.cordova.inappbrowser" intelxdk:value="org.apache.cordova.inappbrowser" />

  • Ok. That might be the issue. Remove everything you have there and paste this.

    <preference name="debuggable" value="false" />
    <intelxdk:crosswalk xwalk-command-line="--ignore-gpu-blacklist" />
    <intelxdk:crosswalk xwalk-command-line="--disable-pull-to-refresh-effect" />
    <preference name="CrosswalkAnimatable" value="false" />[/code:ha3ynd1h]
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)