Closed ehsan-mohammadi closed 1 year ago
Hi, did you modify NativeShare's source code or NativeShare.aar in any way?
@yasirkula No, I didn't.
Hmm, does the example code have the same issue: https://github.com/yasirkula/UnityNativeShare#example-code. On which devices did you test the code?
PS. Is the plugin up-to-date?
@yasirkula Yes, I tested your example code in my project and still have this problem. Also, I downloaded the latest version of NativeShare. Previously, I used NativeShare in this project and it worked. But this month I find out this problem occurs. I did some changes in the project for supporting new android version (13) and think maybe it's the cause of the problem. But I don't know do you have any idea about it?
Edit: I tested the example on Sumsung A51 (android 13) and Samsung A52 (android 12)
@yasirkula It's strange behavior, but I tested your example code and this time it works on another device. I don't know does this problem occurs on some specific devices or not, but try to test my project on some other devices and send you the feedback.
Are you using AndroidJavaClass to modify NativeShare's any of the native static variables? If you didn't update the plugin from GitHub, can you do so? Package Manager is buggy on some Unity versions.
@yasirkula Hi and sorry for the delay. No, I didn't modify any of the native static variables. But this time I tried to download the latest version of NativeShare
from GitHub and currently the problem was solved.
Thanks for your help.
Description of the bug
After calling the
Share()
method, it showsNo apps can perform this action
popup. I didn't use theAddTarget()
method for sharing on a specific app. I think it's not a bug in theNativeShare
library. But maybe we should do some changes in theAndroidManifest.xml
file or something like that.Platform specs
Additional info
There is no error in my console, and this is my code: