- Home /
Conflict with activity tags on android manifest: Facebook and Google Play Games in Unity3d
Both Facebook and Google Play Games plugins require that I use android.intent.action.MAIN and android.intent.action.LAUNCHER in the Android Manifest. But one cancels the other. I'm new to mobile development. Is there any workaround? What can I be doing wrong?
<activity android:name="com.facebook.unity.FBUnityPlayerActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.bfsgooglegames.GoogleGamesUnityPlayerProxyActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Answer by brian_jew · Sep 25, 2013 at 12:23 AM
I answered this problem here: http://stackoverflow.com/questions/18970822/conflict-with-activity-tags-on-android-manifest-facebook-and-google-play-games/18971204#18971204
In short add this to the OnActivityResult()
method in your Activity:
Session.getActiveSession().onActivityResult(this, requestCode, resultCode, data);
Your answer
![](https://koobas.hobune.stream/wayback/20220613114732im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Can't build after importing facebok SDK 7.10.0 2 Answers
Facebook SDK(android) - error 1 Answer
[FIXED]Application.URL woes 1 Answer
Facebook Settings Class Name 1 Answer
Unity Facebook SDK For Android Crashes when Logged in 1 Answer