Manifest Requirements

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

When is Mobile Social Plugin Native modifying manifest? 

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

 

How to Enable or Disable plugin APIs?

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

 

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

 

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

Nope. The plugin only removes the 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 are not included in this list, it menns that it does not require any permissions or additions for the AndroidManifest and requires AndroidNativeBridge as a 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 a 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 a launcher activity: YES

 

Native SharingInstagram Sharing

Permissions:

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

Requires AndroidNativeBridge as a launcher activity: YES