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?