Share Plugin allows sharing of text and images on Android and iOS platforms.
This plugin has been moved under the umbrella of Godot SDK Integrations organization in Github. Previously, the plugin was placed under three separate repositories: Android, iOS, and addon interface.
Before installing this plugin, make sure to uninstall any previous versions of the same plugin.
If installing both Android and iOS versions of the plugin in the same project, then make sure that both versions use the same addon interface version.
There are 2 ways to install this plugin into your project:
- Through the Godot Editor's AssetLib
- Manually by downloading archives from Github
Steps:
- search for and select the
Share
plugin in Godot Editor - click
Download
button - on the installation dialog...
- keep
Change Install Folder
setting pointing to your project's root directory - keep
Ignore asset root
checkbox checked - click
Install
button
- keep
- enable the plugin via the
Plugins
tab ofProject->Project Settings...
menu, in the Godot Editor
When installing via AssetLib, the installer may display a warning that states "[x number of] files conflict with your project and won't be installed." You can ignore this warning since both versions use the same addon code.
Steps:
- download release archive from Github
- unzip the release archive
- copy to your Godot project's root directory
- enable the plugin via the
Plugins
tab ofProject->Project Settings...
menu, in the Godot Editor
Add a Share
node to your scene and follow the following steps:
- use one of the following methods of the
Share
node to share text or images: -share_text(title, subject, content)
-share_image(full_path_for_saved_image_file, title, subject, content)
- Note that the image you want to share must be saved under theuser://
virtual directory in order to be accessible. TheOS.get_user_data_dir()
method can be used to get the absolute path for theuser://
directory. See the implementation ofshare_viewport()
method for sample code. -share_viewport(viewport, title, subject, content)
Install and enable SharePlugin
before running demo.
Plugin | Android | iOS |
---|---|---|
Admob | ✅ | ✅ |
Deeplink | ✅ | ✅ |
In-App Review | ✅ | ✅ |
Notification Scheduler | ✅ | ✅ |
Share | ✅ | ✅ |
Developed by Cengiz
Android part is based on Shin-NiL's Godot Share plugin
iOS part is based on on: Godot iOS Plugin Template
Original repository: Godot Share Plugin