I've implemented the share sheet to share a file (photo) like this:
shareSheet.AddAttachment(((Texture2D)rawImage.texture).EncodeToJPG(), "image/jpeg", $"PHOTO-{_imageSavedAt:yyyy-MM-dd-HH-mm-ss}.jpg");
shareSheet.SetCompletionCallback((result, error) =>
{
if (error != null)
Debug.LogError($"Photo sharing error: {error}");
});
shareSheet.Show();```
This works on iOS 18.3.1 on iPhone, but I'm seeing lots of logs in xcode, and there's a very noticable lag when this is used for the first time.
Is there some sort of initialization I can do to speed up the first share, and can you check the logs to see if there's something wrong with the plugin because of the warnings and errors?