yasirkula / UnityNativeShare

A Unity plugin to natively share files (images, videos, documents, etc.) and/or plain text on Android & iOS
MIT License
890 stars 131 forks source link

Apps not showing on android 11 with 1.4.9 #160

Open friuns2 opened 1 year ago

friuns2 commented 1 year ago

Hello when i'm trying to share image, i have popup no apps showing (only "copy to" button), on my older phone everything works fine all apps are showing, what can be the problem?

yasirkula commented 1 year ago

May I ask the model of the phone, whether or not you've modified the plugin's source code or used AndroidJavaClass to change native static variables?

friuns2 commented 1 year ago

Xiaomi poco x3 pro, i unpacked unitypackage and removed queries from aar manifest, can it be the problem?

yasirkula commented 1 year ago

It might, yeah. Especially if the device is in landscape orientation.

friuns2 commented 1 year ago

yes it was because of query, i added uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" and now its working

btw, thanks for all awesome plugins you making! They way better than paid ones and they free

yasirkula commented 1 year ago

You're welcome! Note that QUERY_ALL_PACKAGES permission might cause issues while submitting to Google Play for security reasons.