private Uri getSharedUri(File sharedFile) {
        try {
            return PluginFileProvider.getUriForFile(context, context.getPackageName() + ".localnotifications.provider", sharedFile);

            // When the given sharedFile is outside the paths supported by the provider.
        } catch (IllegalArgumentException exception) {
            Log.e(TAG, "sharedFile is outside the paths supported by the provider: " + sharedFile.getAbsolutePath(), exception);
            return Uri.EMPTY;
        }
    }
Get the content:// Uri for a shared file.
@param sharedFile The file to get the Uri from
@return E.g. content://com.example.app.localnotifications.provider/shared_files/mySharedFile.png
or Uri.EMPTY if the file is outside the paths supported by the provider.
src/android/util/AssetUtil.java