j3k0 / cordova-plugin-openwith

Get your Cordova App in the O.S. "Share" menu on iOS and Android
MIT License
138 stars 114 forks source link

Android 8 or 9 : with most apps, the items array is empty #54

Open ghost opened 5 years ago

ghost commented 5 years ago

I can't understand why most of the time, the items array is empty when I share content. Don't know how to investiguate

Object action: "SEND" exit: false items: Array(1) 0: null length: 1proto: Array(0)proto: Object

JochenHeizmann commented 5 years ago

@SimplyLab The plugin doesn't seem to support the text datatype on Android. If this is also the problem in your case, you can have a look at my fork with a fix: https://github.com/JochenHeizmann/cordova-plugin-openwith/commit/331e244a048c8aead1f58cc2e7e836893b0ddc55

(I haven't issued a pull request yet)

niklas-e commented 5 years ago

Yeah there seems to be problem with text content on Android (at least). The intent items are null. Have you tested your fixes @JochenHeizmann, could it be opened as PR?

jj449 commented 4 years ago

I confirm this problem . Still exist. @JochenHeizmann 's solution fix this , confirm .

manix commented 2 years ago

@JochenHeizmann the real mvp