Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › nativeUtils.share() shares text with file url instead of it`s contents

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23870

    Dmitry

    Hi!

    Got some troubles with share()

    Currently I`m trying to share .jpg and .txt located in CacheLocation

    file_paths.xml is default from felgo3

    nativeUtils.openFile() opens .txt file with url “content://package_name.fileprovider/cache/filename.txt” (in Android default browser)

    But  nativeUtils.share(_text_,_filepath_) shares a message “_text_ _filePath” where _filepath_ is like “file:///data/user/0/com.mypackage.name/cache/myfile.txt”

    code:
    <pre>nativeUtils.share(“Log file”, fileUtils.getUrlByAddingSchemeToFilename(fileUtils.storageLocation(FileUtils.CacheLocation,”log.txt”)))</pre>
    I`ve tried telegram, whatsapp, different viewers, senders etc. and always the same.

    Am I doing something wrong?

    #23873

    Filippo

    Hi Dmitry,

    Thank you for reaching out. This feature has been implemented very recently, and you’ll be able to properly share file binaries with the next Felgo update.

    Cheers,

    Filippo

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded