Platform Behavior differences

In this chapter I will  describe how plugin function behaves on different platforms.

 

Facebook

public void Login()

IOS:

User will be redirected to the web browser or installed in the official facebook app in order to give access to your application

Android:

Same as IOS

Note: After initialization, you do not have to use Login function if the user has been already logged in.
 

public void Post (....)

IOS:

Facebook style pop-up will appear before posting. User will have ability to modify text before post and cancel/accept post.

Android:

Same as IOS

 

public void PostImage(string caption, Texture2D image)

IOS:

All posting happens in the background. User will not see any pop-ups.

Android:

Same as IOS

 

Twitter

public static void AuthenticateUser()

IOS:

Native dialog will appear to request user permission to use his Twitter account specified in device settings.

Android:

User will be redirected to the web browser in order to give an access to your application.

 

public static void Post(string status)

IOS:

IOS style pop-up will appear before posting. User will have an ability to modify the text before post and cancel/accept post.

Android:

Posting goes in the background. User will see the preload until posting is in a process.

 

public static void Post(string status, Texture2D texture )

IOS:

IOS style pop-up will appear before posting. User will have an ability to modify text before post and cancel/accept post.  

Android:

Posting goes in the background.

 

 

Native Sharing

IOS:

Sharing to Facebook / Twitter is only possible if the user specifies  Facebook / Twitter  account info in the device settings. If there is not info, sharing pop up will be created anyway, but the user will be prompted to fill in account info before sharing.

Android:

Facebook message will be ignored (however you can still share the image) due to Facebook policy.

To share the image using Intent.ACTION_SEND image should be saved on a disc and we will provide an image URL as Intent.EXTRA_STREAM. We are saving to external storage using Images.Media.insertImage. If external storage isn't available, the plugin will use internal storage and use FileProvider  for sending the content to the another app. But not all social applications support this method. So there is a possibility of failure with the devices which don't have external storage support.