You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It downloads the file correctly but when executing RNFetchBlob.android.actionViewIntent() it rises an error due to a lack of a flag. I've seen the same error in this issue: #317 and the solution proposed is to add intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); inside android/src/main/java/com/RNFetchBlob/RNFetchBlob.java file. The problem is that this folder android/src/main/java/com/RNFetchBlob does not exist in my project.
Edit note: This code worked properly in previous versions of Android but not in Android 9.
The text was updated successfully, but these errors were encountered:
Warning:
Error: Calling startActivity() from outside of an Activity context requires the
FLAG_ACTIVITY_NEW_TASK
flag.Versions:
Code:
It downloads the file correctly but when executing RNFetchBlob.android.actionViewIntent() it rises an error due to a lack of a flag. I've seen the same error in this issue: #317 and the solution proposed is to add
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
insideandroid/src/main/java/com/RNFetchBlob/RNFetchBlob.java
file. The problem is that this folderandroid/src/main/java/com/RNFetchBlob
does not exist in my project.Edit note: This code worked properly in previous versions of Android but not in Android 9.
The text was updated successfully, but these errors were encountered: