Share text message on selected media

Posted by Siddharth on Game Development See other posts from Game Development or by Siddharth
Published on 2014-08-19T17:06:27Z Indexed on 2014/08/19 22:35 UTC
Read the original article Hit count: 221

Filed under:
|
|
|
|

I want to share text data on player selected social media. Basically I want to implement functionality like following link represent for android.

Send Text Content

I want to give user a choice for sharing on Twitter, Facebook, Messaging, Gmail etc. Above link give proper guidance for my question.

Here is code that work on android

Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send.");
sendIntent.setType("text/plain");
startActivity(sendIntent);Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send.");
sendIntent.setType("text/plain");
startActivity(sendIntent);

I don't know same functionality implementation in Unity. Basically at present I am targeting two platform for my game

  1. Android
  2. iOS

I found answer for Android platform but I can't able to get answer of iOS platform. Share text message on selected media - Unity Forum

Now I think my question is clear to all of you. So please help me to solve it.

© Game Development or respective owner

Related posts about unity

Related posts about android