Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
elektronische

Junior Member
Registered:
Posts: 4
Reply with quote  #1 

I have a problem and now I have integrated Chartboost in my Unity game for Android, stopped working Google Game Services, anyone know if there is a problem of incompatibility between the two? And if it is, know a solution?

Thanks a lot for your help!

0
Roman

Avatar / Picture

Senior Member
Registered:
Posts: 304
Reply with quote  #2 
You probably didn't fix manifest. Am I right?
__________________
http://wasted-droid.com
0
elektronische

Junior Member
Registered:
Posts: 4
Reply with quote  #3 
I followed the instructions for modify de Manifest in the official documentation of Chartboost.
https://answers.chartboost.com/hc/en-us/articles/200780379-Unity-Integrations
What do you mean exactly?
Chartboost works well, my problem is that since i'm using Chartboost, the Ranking of Google Play Game Services doesn't work.
Here is my Android Manifest file:


<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="preferExternal" package="com.example.admobtest" android:versionName="1.0" android:versionCode="1">
  <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
  <!-- Google Mobile Ads Permissions -->
  <uses-permission android:name="android.permission.INTERNET" />
   <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
   <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
   <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
   <uses-permission android:name="com.android.vending.BILLING" />
  <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="false">
    <!-- Required by Chartboost -->
    <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
  <activity android:name="com.unity3d.player.UnityPlayerProxyActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" >
    <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
    </activity>
    <activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" >
    </activity>
    <activity android:name="com.unity3d.player.UnityPlayerNativeActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" >
      <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />
      <meta-data android:name="android.app.lib_name" android:value="unity" />
    </activity>
    <activity android:name="com.unity3d.player.VideoPlayer" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" >
    </activity>
    <!-- Google Mobile Ads Activity -->
    <activity android:name="com.google.android.gms.ads.AdActivity"
              android:label="@string/app_name"
              android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
    </activity>
  </application>
  <uses-feature android:glEsVersion="0x00020000" />
  <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="19" />
</manifest>


0
EpicStudios

Senior Member
Registered:
Posts: 195
Reply with quote  #4 
Ok so i had a similar issue before. U probably already had a version of google play games installed. If you post the error code I could try to help you out [smile]

0
elektronische

Junior Member
Registered:
Posts: 4
Reply with quote  #5 
Quote:
Originally Posted by EpicStudios
Ok so i had a similar issue before. U probably already had a version of google play games installed. If you post the error code I could try to help you out [smile]



Thank you for your help, I would like to know how do I know the error code? This is the part of code that I'm using and that works well before Chartboost implementation:


    if (Social.localUser.authenticated) {
((PlayGamesPlatform)Social.Active).ShowLeaderboardUI(myScoreId);
        
    }else{
      Social.localUser.Authenticate ((bool success) => {
        if (success)
        {
          Debug.Log("You've successfully logged in");
        }
        else
        {
          Debug.Log("Login failed for some reason");
        }
      });
    }
0
Martin

Avatar / Picture

Administrator
Registered:
Posts: 2,230
Reply with quote  #6 
Hi Elektronische, sorry I can't help with this. I've not used Google Play Game Services yet.
But I think try to just re-install the google play game services plugin again inside unity and it might add some files which the chartboost plugin overwritten or removed.  Usually just re-installing plugins fixes the problem for me. Let us know how it goes.

By the way, im moving this thread to the Game Development Questions section.

Chat soon
Martin
0
EpicStudios

Senior Member
Registered:
Posts: 195
Reply with quote  #7 
By error code I meant the message that gets pushed to the console when the build fails.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.