[Share Content Plugin] Android - Share feature stopped attaching the binary file using URI
share-content-plugin
Mobile icon
Forge component by Pedro Marques
Application Type
Mobile
Platform Version
11.12.2 (Build 31091)

Hi team!
Happy New Year!

I'm facing some issues with the Share action of the plugin, after updating the plugin to version 1.0.4.
It was working fine before the update.

Instead of getting the file - in this case a pdf file - attached to the share feature, it is just appending the URI path as text.


Tested operative system:
- Android 10.


This is a sample of the URI being used in the URL input of the Share action:

file:///storage/emulated/0/Android/data/environment.modulename/cache/MSK_Temp/RemoteMonitoring_12_14_2021_01_21_52.pdf


Update: using the ShareWithOptions method asks to turn on bluetooth, and forces to use bluetooth connection (Android 10).

Update 2: works on iOS.


Do you know what may be causing this behavior?

Hello again.

With the following code, URI works on Android:

If I had to throw a guess, I'd say the order of the parameters matters when using URI.


Would you please add an extra method to the component to allow to share using URI as this one, please?

mvp_badge
MVP

Thanks for the feedback and help on this one, Nuno. A new version (1.0.6) with the fix is already in the Forge.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.