openwithshare
Mobile icon

OpenWithShare

Stable version 1.0.1 (Compatible with OutSystems 11)
Uploaded
 on 11 Apr (4 weeks ago)
 by 
EONE TECHNOLOGIES PRIVATE LIMITED
4.0
 (1 rating)
openwithshare

OpenWithShare

Documentation
1.0.1

Setup Requirements


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

  • For all MIME Types  →  "*/*"
  • Images → image/*
  • PDF → application/pdf
  • Video → video/*
  • Word → application/msword
  • Word (docx) → application/vnd.openxmlformats-officedocument.wordprocessingml.document
  • Excel → application/vnd.ms-excel
  • Excel (xlsx) → application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

 Notes

  • Multiple types must be comma-separated
  • Avoid using spaces between values
  • Some Android apps may still send unsupported types, so always validate the mimeType in code after receiving the file

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:

{

    "plugin": {

        "url": "https://github.com/missive/cordova-plugin-openwith.git",

        "variables": [

            {

                "name": "IOS_URL_SCHEME",

                "value": "openwithshare"

            },

            {

                "name": "IOS_GROUP_IDENTIFIER",

                "value": "group.com.yourcompany.yourapp"

            }

        ]

    },

    "preferences": {

        "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" }
        ]
    }
}


1.0.0

Setup Requirements


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

  • For all MIME Types  →  "*/*"
  • Images → image/*
  • PDF → application/pdf
  • Video → video/*
  • Word → application/msword
  • Word (docx) → application/vnd.openxmlformats-officedocument.wordprocessingml.document
  • Excel → application/vnd.ms-excel
  • Excel (xlsx) → application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

 Notes

  • Multiple types must be comma-separated
  • Avoid using spaces between values
  • Some Android apps may still send unsupported types, so always validate the mimeType in code after receiving the file

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:

{

    "plugin": {

        "url": "https://github.com/missive/cordova-plugin-openwith.git",

        "variables": [

            {

                "name": "IOS_URL_SCHEME",

                "value": "openwithshare"

            },

            {

                "name": "IOS_GROUP_IDENTIFIER",

                "value": "group.com.yourcompany.yourapp"

            }

        ]

    },

    "preferences": {

        "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" },
            { "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" }
        ]
    }
}