Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/NicholasSheehan/Unity-Native-Sharing
A Unity plugin to open native sharing dialogs on iOS and Android, primarily for text and files
https://github.com/NicholasSheehan/Unity-Native-Sharing
android ios sharing-screenshots unity unity-plugin
Last synced: about 1 month ago
JSON representation
A Unity plugin to open native sharing dialogs on iOS and Android, primarily for text and files
- Host: GitHub
- URL: https://github.com/NicholasSheehan/Unity-Native-Sharing
- Owner: NicholasSheehan
- License: mit
- Created: 2015-07-22T16:46:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T09:39:42.000Z (about 2 years ago)
- Last Synced: 2024-10-29T23:55:29.431Z (about 2 months ago)
- Topics: android, ios, sharing-screenshots, unity, unity-plugin
- Language: C#
- Homepage:
- Size: 581 KB
- Stars: 445
- Watchers: 45
- Forks: 119
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
๐ผ๏ธ๐ท Unity-Native-Sharing ๐ท๐ผ๏ธ
Unity-Native-Sharing is a plugin to open native sharing dialogs on iOS and Android.
๐ฑ Social ๐ฑ
![GitHub](https://img.shields.io/github/followers/NicholasSheehan?label=Follow%20on%20GitHub&style=social) ![Twitter](https://img.shields.io/twitter/follow/NSheehanDev?label=Follow%20on%20Twitter)
๐ Support ๐
All of these projects are made during my free time, with more being added over time. If you'd like to support me, you can do it either by [sponsoring me on GitHub](https://github.com/users/NicholasSheehan/sponsorship) or by donating via PayPal
[![](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://www.paypal.me/NicholasSheehan)
๐ Changelog ๐
[What's New? Check the CHANGELOG](CHANGELOG.md)
Watch this repository to be notified of new releases! ![](https://img.shields.io/github/watchers/NicholasSheehan/Unity-Native-Sharing?style=social)
๐ค Contribution ๐ค
For contributing please read [CONTRIBUTING.md](CONTRIBUTING.md)
Don't worry about getting it 100% right, I can tidy it up as I review
๐ฅ๏ธ System Requirements ๐ฅ๏ธ
Unity 2018.3.14f1 or later. Older versions may work, feel free to test!
๐ค Examples ๐ค
Examples can be found at [Unity-Native-Example-Project](https://github.com/NicholasSheehan/Unity-Native-Example-Project)
๐ ๏ธ Installation ๐ ๏ธ
This was built and tested in Unity 2018.4 LTS, but should still work down to Unity 2018.2
Unity 2019.3 or later (Using Unity Package Manager)
![AddPackageFromGitURL](Images~/AddPackageFromGitURL.PNG)
`https://github.com/NicholasSheehan/Unity-Native-Sharing.git#v1.0.7`
Unity 2018.3 or later (Using Unity Package Manager)
Add this to the projects `manifest.json`
```
"com.unitynative.sharing" : "https://github.com/NicholasSheehan/Unity-Native-Sharing.git"
```To update the package, change suffix `#{version}` to the target version.
* e.g. `"com.unitynative.sharing" : "https://github.com/NicholasSheehan/Unity-Native-Sharing.git#v1.0.7"`
Unity 2018.3 or later (Using OpenUPM)
[![openupm](https://img.shields.io/npm/v/com.unitynative.sharing?label=openupm®istry_uri=https://package.openupm.com)](https://openupm.com/packages/com.unitynative.sharing/)
This package is available on [OpenUPM](https://openupm.com)
You can install it via [openupm-cli](https://github.com/openupm/openupm-cli)
```
openupm add com.unitynative.sharing
```Unity 2018.2
`Unity 2018.2` supports embedded packages.
1. Download a source code zip file from the [Releases](https://github.com/NicholasSheehan/Unity-Native-Sharing/releases) page
2. Extract it
3. Import it under the `Packages` directory in your Unity project๐ Features ๐
- Share text to an app
- Share screenshots with text to an app๐งช Testing ๐งช
-- | `Android 8.0.0` | `iOS 10.3.3` | `iOS 11.3.1`
------------- | -------------- | -------------| ------------
Facebook | No Text | No Text | No Text
Messenger | No Text | No Text | No Text
Instagram | No Text | No Text | No Text
Twitter | โ | โ | โ
Discord | โ | โ | โ
Slack | โ | โ | โ๐ญ Known Issues ๐ญ
[Facebook, Messenger and Instagram cannot share text at all, unless passed into their SDK](https://answers.unity.com/questions/871846/can-i-post-to-facebook-with-my-own-text.html)
๐ฑ Platform Notes ๐ฑ
๐ค Android ๐ค
The Android plugin requires `androidx.appcompat:appcompat:1.1.0` to run.
This plugin has support for [Play Services Resolver for Unity](https://github.com/googlesamples/unity-jar-resolver) which will take care of this for you