Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Can't share image (without text) in Instagram with iOS 16.2 or older #167

Open
daltonbr opened this issue Feb 22, 2023 · 4 comments
Open
Labels

Comments

@daltonbr
Copy link

Thanks for this great plugin @yasirkula !

Description of the bug

  • When trying to share a single image (no text) on Instagram in iOS 16.2 or older, we get a quick dimmed screen, and no share happens (the app doesn't crash, at least)
  • Issue not present in Android.
  • Sharing through other apps works as usual.
  • This is a minor issue since it doesn't happen in iOS 16.3

Reproduction steps

A quick video trying to share in iPhone 13 Pro.
https://user-images.githubusercontent.com/10944679/220680141-9217f6e0-4951-4dff-aa2c-d7cb333d5b47.mov

Platform specs

  • Unity version: 2019.3.9f1 LTS
  • Platform: iOS 13.1 until 16.2 (on 16.3 and onwards, the issue went away)
  • Device: reproduced in
    • iPhone 13 Pro - iOS 16.2
    • iPhone 11 - iOS 16.1.1
  • How did you download the plugin: The asset was downloaded through GitHub, and we are currently using the latest v1.4.9

Additional info

  • I'll try to gather some specific logs from the devices and add them later.
  • We are also using BeeByte Obfuscator (as I see another issue regarding Android)
@daltonbr daltonbr added the bug label Feb 22, 2023
@yasirkula
Copy link
Owner

Thank you for the very detailed Issue! May I ask: does this issue occur when sharing an image from WhatsApp to Instagram or Photos to Instagram on problematic OS versions?

@daltonbr
Copy link
Author

@yasirkula
So on those affected devices, we can share images from WhatsApp to Instagram and Photos to Instagram.

I got a log from our QA but couldn't find anything relevant there.

insta sharing logs.txt

@yasirkula
Copy link
Owner

This log could be relevant:

CGImageCopyImageSource:4607: *** CGImageGetImageSource: cannot get CGImageSourceRef from CGImageRef (CGImageSourceRef was already released)

I'm not passing CGImages to the share sheet though, only UIImages. Something I'm unaware of might be happening in the background. If you wish, you can try sharing images as files instead of UIImages: #22

@daltonbr
Copy link
Author

daltonbr commented Mar 6, 2023

Thanks for the insight, @yasirkula; I'll investigate that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants