From 0a1f5020504b2abc34cbef66d7a5213be9ff0f7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=BCleyman=20Yasir=20KULA?= Date: Mon, 10 May 2021 17:29:31 +0300 Subject: [PATCH] Fixed markdown issue in FAQ --- .github/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/README.md b/.github/README.md index 11ac3a3..1d4f46e 100644 --- a/.github/README.md +++ b/.github/README.md @@ -47,8 +47,8 @@ Simply create a new **NativeShare** object and customize it by chaining the foll - `SetCallback( ShareResultCallback callback )`: invokes the *callback* function after the share action is completed. **ShareResultCallback** has the following signature: `void ShareResultCallback( ShareResult result, string shareTarget )` - `ShareResult result` can take 3 values: - **Unknown:** we can't determine whether or not the user has shared the content - - **Shared:** user has probably shared the content. This value guarantees that the user has at least selected an app from the share sheet. But it is impossible to say whether the user has actually shared the content or cancelled the operation right after selecting the app from the share sheet - - **NotShared:** either the user has closed the share sheet immediately or selected an app from the share sheet but then decided not to share the content (unfortunately, most apps return *Shared* for the latter case) + - **Shared:** user has probably shared the content. This value guarantees that the user has at least selected an app from the share sheet. But it is impossible to say whether the user has actually shared the content or cancelled the operation right after selecting the app from the share sheet + - **NotShared:** either the user has closed the share sheet immediately or selected an app from the share sheet but then decided not to share the content (unfortunately, most apps return *Shared* for the latter case) - `string shareTarget` stores information about the app that the user has selected from the share sheet. It can be *null* or empty, if this information isn't provided. Usually, this is the package name/class name of the selected application. You can use this value to e.g. determine if the user has picked Twitter from the share sheet: `shareTarget != null && shareTarget.ToLowerInvariant().Contains( "twitter" )` Finally, calling the **Share()** function of the NativeShare object will present the share sheet. @@ -68,7 +68,7 @@ On Android, you can share on a specific app via *AddTarget*. For iOS, you can ch It is just not possible to share an image/file with text/subject on some apps (e.g. Facebook), they intentionally omit either the image or the text from the shared content. These apps require you to use their own SDKs for complex share actions. For best compatibility, I'd recommend you to share either only image or only text. -- **I can't build the project to Android, it says "Android resource linking failed: unexpected element found in " in the error message** +- **I can't build the project to Android, it says "Android resource linking failed: unexpected element <queries> found in <manifest>" in the error message** NativeShare adds `` element to AndroidManifest.xml due to the new [package visibility change](https://developer.android.com/training/package-visibility). The build error can be fixed by following these steps: https://developers.google.com/ar/develop/unity/android-11-build (in my tests, changing "*Gradle installed with Unity*" wasn't necessary). In the worst case, if you are OK with NativeShare not working on some of the affected devices, then you can open *NativeShare.aar* with WinRAR or 7-Zip and then remove the `...` element from *AndroidManifest.xml*.