Post

Replies

Boosts

Views

Activity

iOS ShareExtension inconsistent PDF Share behavior from Adobe Reader
Are there any known issues sharing a PDF file from Adobe reader to a host app in iOS/objective-c? I have source code that works, but it appears to "work when it wants to work." Maybe 1/20 times or so the PDF is successfully passed back to my host app. I am essentially taking a PDF from an app directory (file:///private/var/mobile/Containers/Data/Application/EB6B8570-6422-49D8-BCBD-C68B9CBCF3C9/tmp/BBTempFileManager/sharedcopies/C2FB25ED-1414-49F0-8953-FFF3A4F6C76C/Sky.pdf) and saving it to a shared container so the file can be accessed from the host app. I'm using the shared container perfectly fine in other use cases.. The odd thing is in a debug view, every time, the correct file path is saved to the UserDefaults in the share extension, but when the same key is checked in the host app it only pulls the path from the UserDefaults 1/20 attempts. Otherwise it will be nil. As I said, in the same debug session on the ShareExtension I can see that the correct shared app container URL is pushed into UserDefaults... I've recently seen issues sharing from Safari (when Chrome supports the same share) so I thought I'd ask...
0
0
595
Sep ’21