Skip to content
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

Strage Error on Android #5

Closed
pivanov opened this issue May 29, 2018 · 8 comments
Closed

Strage Error on Android #5

pivanov opened this issue May 29, 2018 · 8 comments
Labels
android bug Something isn't working native

Comments

@pivanov
Copy link

pivanov commented May 29, 2018

Hey guys I had the following:

import AssetUtils from 'expo-asset-utils'
...
const filename = screenshot-${i}.png
const asset = await AssetUtils.fromUriAsync(uri, filename)
...
the uri is content://media/external/images/media/27

the error I receive is:
[Error: unexpected url: content://media/external/images/media/27]

Any ideas? It works fine on iOS

@marcmoo
Copy link

marcmoo commented Jun 20, 2018

very the same issue, work on iOS but not work on android

@EvanBacon
Copy link
Contributor

Noticed lot's of weirdness with file loading on android in React Native. I'm investigating now

@EvanBacon EvanBacon added bug Something isn't working android labels Jun 21, 2018
@Lidanha
Copy link

Lidanha commented Jul 1, 2018

Hey is there a workaround for this?

@EvanBacon
Copy link
Contributor

I can look at it this week. In RN we use the fetch API to load files. For whatever reason loading binary files in Android doesn't work, I don't think it's related to this issue. You also cannot save a b64 and get a localURI cuz RN.ImageStore isn't supported on Android 😱 point being that android has a bunch of file system features missing 😩 Expo.FileSystem could potentially solve these issues, I would just have to add some native code. Tried last week but we were doing a bunch of refactoring. But always on my mind 😁

@Lidanha
Copy link

Lidanha commented Jul 3, 2018

Thanks, I really appreciate your support. My team is really stuck.. 😢 We can't use expo-pixi because it uses expo-asset-utils that has this issue.

@Lidanha
Copy link

Lidanha commented Jul 31, 2018

Hey @EvanBacon,

Any news about this issue?

Thanks

@jlongshore
Copy link

Same issue with Android - needing to use expo-pixi in the same manner as @Lidanha

@EvanBacon
Copy link
Contributor

expo/expo#2328 able to be fixed in SDK31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android bug Something isn't working native
Projects
None yet
Development

No branches or pull requests

5 participants