yasirkula / UnityNativeShare

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

sharing failed when sending video to WeChat and Line #1

Closed SzuWeiChen closed 6 years ago

SzuWeiChen commented 6 years ago

sharing failed when sending video to WeChat and Line

yasirkula commented 6 years ago

Can you also try it on another phone? If that doesn't work, can you post the device logs (logcat) here?

SzuWeiChen commented 6 years ago

it is my test project and apk https://drive.google.com/drive/folders/0B07cVkP6fZfVdnk4aHZURy0zTk0?usp=sharing

I can share it to facebook and youtube but sharing failed when sending to WeChat and Line

yasirkula commented 6 years ago

I honestly am clueless about the fix to this bug right now. The source code of FileProvider is almost the same as Android's official FileProvider (android.support.v4.content.FileProvider). It was mostly a copy-paste anyways. I couldn't spot any potential flaws in the code yet.

Also, sorry for the late response. And thank you for sharing the test project. Have you tried testing it on another device?

yasirkula commented 6 years ago

I've recently googled this issue and found the following entries:

https://github.com/tvbarthel/IntentShare/issues/32 https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking/issues/287

These entries suggest that the issue may be caused by WeChat and/or Line themselves rather than my plugin. According to this entry, on the other hand, it seems possible to share on WeChat and/or Line but it will limit the usability of the plugin in the following ways:

So, until me or someone else figures out a way to fix this issue, I'll mark this issue unsolvable.