1. Add the "ShareWithListener" block in your Layout.
2. By default, Android configuration is included. For iOS, please add the `IOS_URL_SCHEME` and `IOS_GROUP_IDENTIFIER` in the extensible configuration.
3. Common ANDROID_MIME_TYPE MIME Types
Notes
Android Configuration:
{
"preferences": {
"android": [
{ "name": "AndroidLaunchMode", "value": "singleTask" },
{ "name": "AndroidXEnabled", "value": "true" }
]
},
"plugin": {
"url": "https://github.com/missive/cordova-plugin-openwith.git",
"variables": [
{ "name": "ANDROID_MIME_TYPE", "value": "*/*" }
}
iOS Configuration:
"name": "IOS_URL_SCHEME",
"value": "openwithshare"
"name": "IOS_GROUP_IDENTIFIER",
"value": "group.com.yourcompany.yourapp"
"ios": [
"name": "deployment-target",
"value": "15.0"
"name": "UseSwiftLanguageVersion",
"value": "5"
Note: Ensure you replace group.com.yourcompany.yourapp with your specific iOS App Group identifier.
Combined Configuration:
{ "plugin": { "url": "https://github.com/missive/cordova-plugin-openwith.git", "variables": [ { "name": "ANDROID_MIME_TYPE", "value": "*/*" }, { "name": "IOS_URL_SCHEME", "value": "openwidthshare" } ] }, "preferences": { "android": [ { "name": "AndroidLaunchMode", "value": "singleTask" }, { "name": "AndroidXEnabled", "value": "true" }, { "name": "GradlePluginGoogleServicesEnabled", "value": "true" } ], "ios": [ { "name": "deployment-target", "value": "15.0" }, { "name": "UseSwiftLanguageVersion", "value": "5" } ] }}
{ "plugin": { "url": "https://github.com/missive/cordova-plugin-openwith.git", "variables": [ { "name": "ANDROID_MIME_TYPE", "value": "*/*" }, { "name": "IOS_URL_SCHEME", "value": "openwidthshare" }, { "name": "IOS_GROUP_IDENTIFIER", "value": "group.com.yourcompany.yourapp" } ] }, "preferences": { "android": [ { "name": "AndroidLaunchMode", "value": "singleTask" }, { "name": "AndroidXEnabled", "value": "true" }, { "name": "GradlePluginGoogleServicesEnabled", "value": "true" } ], "ios": [ { "name": "deployment-target", "value": "15.0" }, { "name": "UseSwiftLanguageVersion", "value": "5" } ] }}