When using the Image Picker / Photo Library component, it gives me an error and the companion crashes.
Error message:
My app is simply trying to pick an image… upon retrying same error occurs
Device: iPhone 6Plus
iOS Version 12.5.5
Edit: Tried on a test project. Same Error.
Testing on Android: Works as expected. Seems to be an iOS problem.
1 Like
jared
August 6, 2022, 4:01pm
3
Hi @sai1910
Sorry you’re seeing this today. Can you share a minimal example of this issue?
Is anyone else seeing this?
1 Like
zander
August 7, 2022, 4:27am
5
Can you create a minimal example? It’ll help Jared and his team fix the issue. I have an image picker in my app and just tested and it works fine for me.
The Why?
I used to get really annoyed at this request. Now though, in a support role, I totally understand and what to share our point of view on this and also to share a helpful article pulled from StackOverflow.com .
Basically the why is because this helps us help you. Videos and screenshots are great help for chat/forum support, but if you are at the point that staff need to jump in cause something isn’t working, staff not only want to see the issue but we also want to recreate the issue an…
Here: test .
I think the problem may be specific to my device (iPhone 6Plus, iOS 12.5.5).
zander
August 7, 2022, 2:06pm
7
Just tested using your project, it worked fine for me. So it might just be your phone. Do you have the most up to date thunkable companion app?
1 Like
Yes, the companion is up to date.
1 Like
zander
August 7, 2022, 2:44pm
9
I also just tested it on an iPhone 11 Pro and it worked out fine. So it night be something to do with your phone. Do you have the most up to date iOS? (Trying to find things to help) Also maybe restart your phone
1 Like
sai1910
August 10, 2022, 11:43am
10
iPhone 6plus only supports up till IOS 12.5. Can’t update further than that.
Will try restarting.
1 Like
sai1910
August 10, 2022, 12:57pm
11
Found this on GitHub. Seems to be the same issue. How can this be fixed on thunkable?
opened 02:24PM - 26 Oct 21 UTC
closed 10:53PM - 24 Jun 22 UTC
needs review
### Summary
When calling `ImagePicker.launchImageLibraryAsync` on `iPhone 6 iOS… 12.5.5` the app crashes. This has NOT been reproducible on:
- `iPad Pro 14.6`
- `iPad Air 2 iOS 15.0`
- `iPhone 7 iOS 15.0.2`
There was no problem prior to `SDK 43`
### Managed or bare workflow? If you have `ios/` or `android/` directories in your project, the answer is bare!
managed
### What platform(s) does this occur on?
iOS
### SDK Version (managed workflow only)
43
### Environment
Expo CLI 4.12.8 environment info:
System:
OS: Linux 5.11 Ubuntu 21.04 (Hirsute Hippo)
Shell: 5.1.4 - /bin/bash
Binaries:
Node: 15.5.1 - /usr/local/bin/node
Yarn: 1.22.17 - /usr/local/bin/yarn
npm: 7.3.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
Android SDK:
API Levels: 22, 23, 24, 25, 26, 28
Build Tools: 23.0.1, 23.0.2, 25.0.2, 25.0.3, 26.0.1, 26.0.3, 27.0.3, 28.0.3
System Images: android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
npmPackages:
expo: ^43.0.0 => 43.0.0
react: 17.0.1 => 17.0.1
react-native: 0.64.2 => 0.64.2
npmGlobalPackages:
expo-cli: 4.12.8
Expo Workflow: managed
### Reproducible demo or steps to reproduce from a blank project
Should be reproducible using an iPhone 6 with iOS 12.5.5 and opening the Snack below. This Snack is the same as the Snack from the ImagePicker documentation (https://docs.expo.dev/versions/latest/sdk/imagepicker). We have not been able to reproduce on any of the other iOS versions we have available (iPad Pro 14.6, iPad Air 2 iOS 15.0 & iPhone 7 iOS 15.0.2)
https://snack.expo.dev/@qinspect/image-picker
sai1910
August 12, 2022, 12:53pm
12
Thunkable Team, any update on this ??
zander
August 15, 2022, 12:48am
13
Have you been able to reproduce this on any other device besides the iphone you own?
I know we all don’t own multiple devices (I don’t) but perhaps have people you know try it?
jared
August 15, 2022, 6:11pm
14
Hey @sai1910
We recently discontinued support for iOS 12 in order to upgrade some other parts of the build process. Sorry for the delay to a response. So sorry for the inconvenience.
What kind of app are you building? Are a lot of users experiencing this?
2 Likes
Currently just testing the app. It’ll be used by many users, but the ImagePicker functionality is only for the admins of the App. So hopefully this won’t be a big issue.
zander:
any other device
No, works perfectly on Android and on iOS 14 device.
1 Like