-
-
Notifications
You must be signed in to change notification settings - Fork 432
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
Picker not responding to document selection on iOS 13 #246
Comments
Possibly same issue as #242 |
After playing around in the XCode debugger I can see this error message:
|
I'm having the exact same issue that @spbriggs has, nothing happens when a document is selected in the browser. |
@edward-whittle is this happening for you in the simulator or on a physical device? |
@spbriggs This is on the simulator using iOS 13. The implementation works fine when using iOS 12.2 on the simulator though. |
any news on this issue? We have the same problem with iOS 13 simulator. Physical devices have the same error. |
Any help please? It doesn't work on iOS. Tried with a fresh react native 0.61 project with no other dependencies, on iOS 12.1, 12.2, 13. The file picker pops up, then there is no response or error when selecting a file. |
After spending the whole day trying to debug this I think I've finally tracked this down to a bug related to using XCode on macOS Mojave. I set up a pure objective-c project in XCode (no React Native) with just a button to open a UIDocumentPickerViewController and hit a breakpoint when the didPickDocumentURLs function is called. I got the same behaviour as described in this bug ie the picker opened but the didPickDocumentURLs was never called. Googling around I arrived here : https://stackoverflow.com/a/58091995 . I followed the same steps as the stackoverflow poster, setting up a macOS Catalina virtual machine, installed XCode and ran my toy project again. This time it worked perfectly, hitting the breakpoint with the file URL passed in. Am I right in thinking that the other people reporting this bug are also on macOS Mojave? |
@spbriggs I'm having this issue with Xcode 10 builds in Mojave. I haven't tried Xcode 11 - I was waiting to update until after I'm through a big RN upgrade. As stated above, the document picker works fine in iOS 12.x on the sim, but has issues while running on my physical iOS 13 device. So is the current thinking that upgrading to Catalina will fix it? |
@cdunkel I wouldn't say that it is "the current thinking" at the moment. It resolved my problem but yours might be different. I don't have an iOS 13 device so I was only using the simulator. Of course, if you try Mojave and it fixes your problem please post here to let people know. |
I just spoke with one of our testers and she experienced no issues with the document picker while testing on an iPhone 7 and iPad running 13.1.3. I also just went back and re-tested on my iPhone X - which was the device on which the issue was first noticed - and I'm not seeing the problem anymore. It's also running iOS 13.1.3. All of the builds I've tested were built in Xcode 10 on Mojave. I don't see anything in their release notes, but it's possible that this was addressed in a recent iOS update. Can people verify what version(s) of iOS they're seeing this on? Update: I was able to replicate the issue on iOS 13.1.3 after all, but only when attempting to select .docx files first. If I tried to select a different file type (.png, .pdf, etc) then I didn't have an issue. |
Experiencing issue with the following setup: |
@DanielBoening, is there any way you could test with a simulator running 13.1.3 or 13.2? |
@cdunkel |
Something else to test: what kind of docs are being attempting to select? In my testing I've seen the issue in apps build on both Mojave and Catalina, but I don't seem to have any issues when selecting images, PDFs, gifs, etc, but if I try to select a docx file it won't work. After one failed selection I can't select anything new without tapping it multiple times, even to navigate into a folder. |
If anyone finds the issue and opens a PR, that would be really neat, I can't focus on this at all right now. |
This issue appears to still be present. Picker works on Android, but on iOS the promise is never resolved when files are picked - the spinner just spins. I've tried downgrading to 2.0.0 with no success. I've never worked with NativeModule before or I would attempt a fix. |
same on catalina / RN 61.3 / ios 13 / xcode 11.0 :( ..... any fix ? |
confirmed updated to xcode 11.3.1 & simulator iOS 11.3 is fix the issue |
In my case, I found this issue when I put Document Picker trigger in react-native-raw-bottom-sheet. |
hello, based on #246 (comment) and #246 (comment) I'm assuming this is a bug we have no control over because it happens without this package too, and it likely was fixed at some point by apple. Please open a new issue if you still experience this, thank you! 🙂 |
I have an app which works perfectly when running on an iOS 12 device but the exact same build fails on iOS 13 Simulator (I don't have an iOS 13 device to test on)
On iOS 13 the UIDocumentPickerViewController appears fine, I can navigate through folders OK but when I tap on a particular file nothing happens. No error message, nothing I can see in the logs.
I have iCloud capability as per attachment
![Screenshot 2019-10-05 at 13 33 21](https://user-images.githubusercontent.com/723001/66254891-c6db6380-e774-11e9-901d-8995e08f5db3.png)
React Native code is just as below:
XCode v11.0 (also tried with 11.1 GM Seed) used for both iOS 12 and 13 tests
The text was updated successfully, but these errors were encountered: