diff --git a/plugin.xml b/plugin.xml
index 4cbb5ec..1b1a635 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -27,7 +27,7 @@
-
+
diff --git a/src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java b/src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java
index 3f2182d..399eb19 100644
--- a/src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java
+++ b/src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java
@@ -116,7 +116,7 @@ public class FileOpener2 extends CordovaPlugin {
path = Uri.fromFile(file);
} else {
Context context = cordova.getActivity().getApplicationContext();
- path = FileProvider.getUriForFile(context, cordova.getActivity().getPackageName() + ".provider", file);
+ path = FileProvider.getUriForFile(context, cordova.getActivity().getPackageName() + ".fileOpener2.provider", file);
}
intent.setDataAndType(path, contentType);
intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_ACTIVITY_NEW_TASK);
@@ -124,7 +124,7 @@ public class FileOpener2 extends CordovaPlugin {
} else {
intent = new Intent(Intent.ACTION_VIEW);
Context context = cordova.getActivity().getApplicationContext();
- Uri path = FileProvider.getUriForFile(context, cordova.getActivity().getPackageName() + ".provider", file);
+ Uri path = FileProvider.getUriForFile(context, cordova.getActivity().getPackageName() + ".fileOpener2.provider", file);
intent.setDataAndType(path, contentType);
intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_WRITE_URI_PERMISSION);