Unable to Share File with Sharing Component

Hello, everyone!
I hope you guys are feeling awesome and healthy today.

I recently tried to develop an app using Kodular, the Fenix version, but I faced a problem.
I am unable to share a file (PDF) using the Sharing component.

Below are the steps I have taken

  • Using the extension from Taifun (File) and the Sharing component
  • Granted the write permission
  • Copied the file to the internal storage
  • Blocks :

In this video below, I tried to share the PDF file using the Companion, it successfully copied the PDF from Assets to the internal storage, plus, the share dialogue also successfully appears and thus allows the user to share the PDF.

After that, I exported the app as APK and tried the same way. It results copying the file successfully to the internal storage but the sharing dialogue does not appear. Please watch the video below.

How do I make it right?
Any help would be truly appreciated.
Thank you very much!

See here there was a bug in picking pdf and opening them now this is fixed but still need release

1 Like

Are you testing it on Android 11?

i think this is not android 11 :sweat_smile:ops my mistake

Hi there, thank you for your response!

It is an Android Oreo 8.0, but the problem is also occurring on Android 11

Yes this is on android 11 so wait till the bug fix is released

Hello Aditya!
Thank you very much for the information, truly appreciate it.

But the problem is not about the information you have provided.
My problem is about the Sharing component, I think it does not matter what the file format is, whatever it is, it is only be able to copy to the internal storage but unable to share it (share dialogue is ot showing), please refer to my first post above and the videos for details.

Cheers!

Mine Too Sharing Btn Not Working !!

I think problem is with path. Try changing it.
I’m not sure which path will work, try changing it to file:///

Hello Chandan!
Thank you for the response.

I successfully share the file with Companion but not with the exported app, I think I have successfully defined the path by that but somehow the app is unable to show the dialogue of sharing component nor sharing the file.

But I will try your solution soon, I will post the result too.

Santé!

1 Like

Whoa, may I know how do you make the UI to be dark?

It is available in settings.
First button, right-top

Thank you!

I still have this main problem though, if anyone knows how to solve, please let me know.
Thanks!

Try this:

1 Like

Hello Chandan,
Thank you for the help!

I have changed the value of the Sharing component’s block as below
image

I, then, tried the APK I exported in my phone, please refer to the video below for the outcome.


The outcome shows that it successfully copy the file from assets to internal storage, but again, the Sharing dialogue is not appearing, thus I am unable to share the file.

Hi there!
Thank you for your response.

I have tried your solution after you submitted your response, I arranged the blocks as follows


Note : I have granted the storage permission

The blocks is not exactly the same as yours though, since I am having problem with the Sharing component only.

I, later, exported the APK and tried it on my Android device.
It successfully displays the Sharing dialogue!

Thanks a million for your help! :grin:

2 Likes