- Home /
Need help ios native share
I would like to share game link on ios using ios native share function. I do not want to share any image with it. I only require to share text.
if UNITY_IOS
public struct SocialSharingStruct
{
public string text;
}
[DllImport ("__Internal")] private static extern void showSocialSharing(ref SocialSharingStruct conf);
public static void CallSocialShareAdvanced(string defaultTxt)
{
SocialSharingStruct conf = new SocialSharingStruct();
conf.text = defaultTxt;
showSocialSharing(ref conf);
}
endif
Do I need any other code than this?
Comment
Your answer
Follow this Question
Related Questions
Unity sounds not playing after AVAudioSession is disabled 1 Answer
iOS native camera framework is always included 1 Answer
How can I freez other apps on the device to make an freezer app on unity for ios? 0 Answers
iOS game - Run GPS in background? 2 Answers
In a native iOS App, how to send a message from Unity to iOS ? 1 Answer