Manifest Requirements

Starting from Version 4.0 Mobile Social Plugin will make modifications to the AndroidManifes depends on API you using with the plugin.

When Mobile Social Plugin Native is modifying manifest? 

  • When MSP editor window is opened (if plugin is installed and up to date)
  • After plugin instalation / update
  • After user is enable / disable APIs

 

How to Enable or Disable plugin APIs?

You can do this with Editor setting, using Mobile Social Plugin APIs section:

 

Note: Facebook API can be disabled only be removing FB SDK from the project, the action can not be reversed, tant's why there is the separate button for this:

 

Will Mobile Social Plugin harm my own changes in the manifest?

Nope. Plugin only removes data related to the plugin feature everything else will stay the same. As for permission, event if plugin does not require some permission anymore, it will not remove it from your manifest.

 

How to disable auto manifest manging?

You can disable it by unchecking Keep Android Manifest Clean option.

 

APIs and Requirements

Note: If features not included in this list it mains that it does not requires any permissions or additions to the AndroidManifest and requires AndroidNativeBridge as launcher activity.

 

Facebook API

Android Manifest:

<application>
.....
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="\ 395891937214418" />
<activity
       android:name="com.facebook.LoginActivity"
       android:label="@string/app_name"
       android:theme="@android:style/Theme.Translucent.NoTitleBar" />
        
<activity android:name="com.facebook.unity.FBUnityLoginActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen">
</activity>
<activity android:name="com.facebook.unity.FBUnityDeepLinkingActivity" android:exported="true">
</activity>
.....
</application>

Permissions:

<uses-permission android:name="android.permission.INTERNET" />

Requires AndroidNativeBridge as launcher activity: NO

 

Twitter API

Android Manifest:

<application>
.....
<activity android:launchMode="singleTask">  //lauchner activity
    <intent-filter>
		<action android:name="android.intent.action.VIEW" />
		<category android:name="android.intent.category.DEFAULT" />
		<category android:name="android.intent.category.BROWSABLE" />
		<data android:scheme="oauth" android:host="APP_BUNDLE_ID" />
	</intent-filter>
</activity>
.....
</application>

Permissions:

<uses-permission android:name="android.permission.INTERNET" />

Requires AndroidNativeBridge as launcher activity: YES

 

Native SharingInstagram Sharing

Permissions:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 

Requires AndroidNativeBridge as launcher activity: YES