Unity asset for native sharing a screenshot on Android and iPhone.
I have set the repository up as a unity project. When adding features you will need to open the contents of the repository in unity. For any new features add a new UI Button and connect the feature up to that button and name it accordingly.
If you would like to make any changes or update the android layer of the asset you can do so by changing the contents of the android-social-library. You will then need to replace frisp-social.jar
inside of this repo with the one generated from working on android-social-library.
- Download the asset and import it into your unity project.
- Update the
Scripts/FrispSocial/FrispSocialConstants.cs
file to contain the message and title you wish to use. - Connect the functions that are in the
Scripts/FrispSocial/FrispSocial.cs
class with actions in your game.
- INSTALL_FAILED_CONTAINER_ERROR: When exporting the project to Android Studio change:
android:installLocation="preferExternal"
to:android:installLocation="auto"
on the following line:
<manifest xmlns:android="https://schemas.android.com/apk/res/android" package="com.frispgames.frispsocialunityasset" android:versionName="1.0" android:versionCode="1" android:installLocation="preferExternal">
- Permission issues: Make sure the following line is in your AndroidManifest.xml this should be under
Plugins/Android
folder. If not you can find one under theTemp/StagingArea
directory after building for android. Add this into yourPlugins/Android
directory and add the below line:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />