Comments (4)
Issue solved!
Adding:
<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:mimeType="*/*" />
</intent>
</queries>
on the AndroidManifest.xml
file fixed it for me 👍
from react-native-blob-util.
actionViewIntent is in general still working, also with pdf. Using it in production myself.
You're using the old library? This one did not trigger a promise rejection if no app to open the pdf is installed. React-native-blob-util will reject the promise and thus give you some information.
The reason I'm writing this is, that I had the same behavior you're describing on devices which didn't have a proper app to open the file type I wanted to open. So please check if you have any app installed that can open a pdf. (Not just open but react on actionviewintent, so basically opens if you click on a pdf in e.g. a file manager)
from react-native-blob-util.
Thanks for the quick response @RonRadtke.
I've made sure of it, and yes, I'm making use of the latest version (0.13.5
) of the react-native-blob-util
library.
Yesterday I tested on an emulator, so the option of not having an app could be there, but today I've been able to test it on an Android 11 device which has PDF apps and where we're able to open the PDF if we access it from a file manager.
The result is no feedback other than null
is provided when logging the
await ReactNativeBlobUtil.android.actionViewIntent(filePath, `application/pdf`)
function.
from react-native-blob-util.
Glad to hear. Then I close the issue here
from react-native-blob-util.
Related Issues (20)
- Is it possible to create a blob from a local image uri? HOT 5
- there is warn when ios building
- How to async/await in `readStream`
- react-native-blob-util--fs.isDir Invocation Error
- iOS privacy manifest HOT 1
- Android Download Manager notification only shows up at the end
- response.json() is throwing an Error in Android saying No such file or directory HOT 1
- dest.exists() check fails in writeStream() in files of type content:// HOT 1
- Using writeStream() with content:// Uris HOT 1
- File gets corrupted with readStream() with base64 when using bufferSize defaults
- java to kotlin change example HOT 5
- pathForAppGroup typescript error HOT 1
- Error opening APK file: installation package is corrupt HOT 3
- Integration network debugging react-native-debugger HOT 1
- Crash when readStream on IOS
- Problem with java.lang.RuntimeException: java.lang.IllegalStateException: Use of own trust manager but none defined HOT 1
- wifiOnly option doesn't work on iOS as expected
- copyToMediaStore does not work on Android versions lower than 10 HOT 2
- Upload Video [Error: The operation couldn’t be completed. Message too long] HOT 3
- [Error: Unexpected FileStorage response file: null] on android 14 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-blob-util.