-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when sharing image to Instagram (iOS) #117
Comments
I am having this issue as well, any update on resolution? I noticed that everything seems fine in iOS 14.0.1 but getting this error after updating to iOS 14.2 |
Has Apple released a new version of iOS!? Is that the latest version of iOS? |
@rodrigograca31 yes it seems that they released iOS 14.2 and I'm no longer able to post due to this error when using this version. I can confirm that posting using version 14.0.1 is working though. I'm not an iOS dev either... @pjamourik did you find a work around for this? |
Not really. I temporarily disabled the plug-in for iOS only. I just download the image to the phone's library, copy the text to the clipboard and then open Instagram. The user then can select the image manually. Not great, but it works. |
I've found that different versions of IOS 14+ yield different results. But I have an alternative solution for the failing ios version. Am in progress working up a pull request after I clean it up and test more...
The only solution I could come to, was to save the image as jpg to the Library, so as to generate a local identifier by scanning PHAsset, then launching /library intent. It works flawlessly on the failing ios version. The only downsides:
So if you have a proprietary solution already in place for your app, to attain localIdentifiers from library, then you should just switch to the |
…identifier, to be then opened by IG. This was to bypass Document Interaction API approach, which is clearly not working on some IOS 14+ devices for specific Instagram versions. Further notes: The error messages in terminal from xcode do not indicate any reason why DI would fail. And on latest 14.4.1 of IOS with latest instagram, the code which is broken works fine. I believe it's caused by instagram itself failing to process the "Copy to" DI event, since the error is resolved on latest. Therefore this commit simply introduces developer control to specific precisely which "logic mode" (approach) to use. You can use legacy... IGO (exclusivegram), or 13+ IG (photo), and now --- LIBRARY mode which works as described above. DEFAULT Mode is ... the default. And so existing user code will be left unaffected by this change. It will continue as if no change was made. User can opt-in to use the new logistics, if they so choose. REF: vstirbu#117
if you wish to use it without pull request being processed, you can.
|
I just merged this and release as 0.6.2. |
Interesting. Looking online am seeing other reports listing it as a bug with apple (here, here). Grep scanning for NSObject, am not seeing any in the core code of this plugin. I'm using a Meteor project, so my cordova/gradle is always several versions behind everyone else.
|
IOS: 16.4 |
Just updated my IOS to 13.3.1, and XCode to 14.3, but same Cordova as you (no change). How does your config look? Like the callee that is.
( Also, check for any plugin logs in XCode developer tools. ie. If none of those messages are present, then the plugin isn't even executing; so something would have to be broken at a core level. I'll look around and see if I can spot any reason why you'd get that error, but so far I can't replicate. |
The issue exists only for ios 16 and higher versions, I tried with ios 13 and ios 12 I cannot reproduce it |
I dont have have iOS devices, if someone comes up with a solution and sends a PR I can accept it tho |
Same here, and unfortunately I can't afford a 2022+ mac right now, so am hardware locked by Apple. My coworker has ios 16.5 on his phone, and compilation from lower mac with xcode deployed live on appstore is working fully. |
Is anyone else experiencing problems when sharing images to Instagram.
The problem only occurs on iOS, and only started about 1 or 2 weeks ago. Android works fine.
After selecting Instgram:
Coming back to my app, following error from the plugin shows:
Any feedback would be highly appreciated
The text was updated successfully, but these errors were encountered: