Skip to content

Commit

Permalink
fix(share): correct whatsapp file sharing (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchMakesThings committed Mar 3, 2022
1 parent f083841 commit 18b10c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void share(PluginCall call) {
);
intent.putExtra(Intent.EXTRA_STREAM, fileUrl);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
intent.setData(fileUrl);
intent.setDataAndType(fileUrl, type);
}
intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
}
Expand Down

0 comments on commit 18b10c4

Please sign in to comment.