简体   繁体   中英

React-Native android, reset default apps

I my application I use react-native with rn-fetch-blob to fetch images/pdf files. On the first run, when I try to open, let's say, a pdf file, on android I get a native dialog, something like "Open with ..." and a list of apps that support pdf. I get to choose whether to use a certain app "just once" or "always".

If I select "always", I don't get the dialog anymore, which is expected. I am just wondering, is it possible to programmatically reset the selected default app, so I can get that dialog again?

我认为通过react-native-share获得期望行为的另一种方式也请检查以下选项:showAppsToView

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2025 STACKOOM.COM