android - Facebook Unity SDK v5.0.4 - Trouble with login with mobile device -


some days ago, used facebook unity sdk v5.0.3 , tested on android phone. today add multi-platform plugin project(revmob-advertise), change androidmanifest.xml. can't login using facebook profile. re-import newest facebook unity package , think there may problems don't know because changed manifest , build several times , result wasn't change. android manifest, please me figure out problem.

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.unity3d.player" android:installlocation="preferexternal" android:theme="@android:style/theme.notitlebar" android:versioncode="1" android:versionname="1.0">   <supports-screens android:smallscreens="true" android:normalscreens="true" android:largescreens="true" android:xlargescreens="true" android:anydensity="true" />   <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="true">     <activity android:name="com.facebook.unity.fbunityplayeractivity" android:launchmode="singletask" 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.unity3d.player.unityplayeractivity" android:launchmode="singletask" 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:launchmode="singletask" 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="false" />     </activity>     <activity android:name="com.facebook.loginactivity" android:configchanges="keyboard|orientation|screensize" android:theme="@android:style/theme.translucent.notitlebar">     </activity>     <meta-data android:name="com.facebook.sdk.applicationid" android:value="\ 267548153412434" />     <activity          android:name="com.facebook.unity.fbunityloginactivity"          android:configchanges="fontscale|keyboard|keyboardhidden|locale|mnc|mcc|navigation|orientation|screenlayout|screensize|smallestscreensize|uimode|touchscreen"          android:theme="@android:style/theme.translucent.notitlebar.fullscreen">     </activity>     <activity android:name="com.facebook.unity.fbunitydeeplinkingactivity" android:exported="true">     </activity>   </application> </manifest> 

facebook unity sdk no longer requires use main activity, use unityplayeractivity "main" action intent-filter or whatever plugin needs use make sure manifest file contains:

  • applicationid
  • loginactivity
  • fbunityloginactivity
  • fbunitydeeplinkingactivity

so add manifest whatever plugin using generated

    <activity android:name="com.facebook.loginactivity" android:configchanges="keyboard|orientation|screensize" android:theme="@android:style/theme.translucent.notitlebar">     </activity>     <meta-data android:name="com.facebook.sdk.applicationid" android:value="\ 267548153412434" />     <activity          android:name="com.facebook.unity.fbunityloginactivity"          android:configchanges="fontscale|keyboard|keyboardhidden|locale|mnc|mcc|navigation|orientation|screenlayout|screensize|smallestscreensize|uimode|touchscreen"          android:theme="@android:style/theme.translucent.notitlebar.fullscreen">     </activity>     <activity android:name="com.facebook.unity.fbunitydeeplinkingactivity" android:exported="true">     </activity> 

Comments

Popular posts from this blog

visual studio - vb.net filter binding source by time -

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -