Share text message on selected media
- by Siddharth
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
Android
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.