Platform Behavior differences

At this chapter, I will  describe how plugin function will behave on different platforms.

 

Facebook

public void Login()

IOS:

User will be redirect to the web browser or installed 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 is 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 redirect to the web browser in order to give access to your application.

 

public static void Post(string status)

IOS:

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

Android:

Posting goes in the background. User will see 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 ability to modify text before post and cancel/accept post.  

Android:

Posting goes in the background.

 

 

Native Sharing

IOS:

Sharing to Facebook / Twitter only possible if the user specified  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 still can share the image) due to Facebook policy.

To share the image using Intent.ACTION_SEND image should be saved on disc and we will provide image URI as Intent.EXTRA_STREAM. We saving to external storage using Images.Media.insertImage. If  external storage isn't available plugin will use internal storage and use FileProvider  for sending content to the another app. But not all social applications support this method. so there is fail possibility with the devices with doesn't have external storage support.