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 to send MMS or email with attachment

Tagged: 

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

    Marek

    Hi

    I need to send file (picture) in MMS or as an attachment in email in Android and iOS. For now testing on Android. I have latest Felgo version.

    I’m using nativeUtils.share for that but it always creates SMS not MMS with text as file_path not with image attached.

    I have read this https://felgo.com/doc/fileutils/#requirements-for-reading-files-on-android

    And I have proper section inside AndroidManifest and res/xml/file_paths.xml

    Actually it was created by Felgo when I created my project.

    If I use

    nativeUtils.share("Share Photo from server", root.file_path);

    And choose to send “message” I got SMS with text:

    Share Photo from server file://data/data/package_name/files/15.png
    

    Am I missing something or is this problem related to earlier post in forum ?

    https://felgo.com/developers/forums/t/file-chooser

    And something more is needed as nativeUtil.share will only share url/text ?

     

    Best,

    Marek

    #20583

    Alex
    Felgo Team

    Hi Marek,

    the NativeUtils::share method is only intended for text and (web-)urls.

    The forum thread you referenced is about sharing an file with another application and chose your own as the target for such a share.

    Sending (sharing) files will require native code, you might get some ideas how to do this with Qt/Felgo for that from this blog post: http://blog.qt.io/blog/2017/12/01/sharing-files-android-ios-qt-app/

    We can also add those features for you, with the purchase of a support package. Let us know at support@felgo.com if this is interesting for you!

    Alternatively it might be interesting to use cloud services like Firebase Storage, to upload files to the cloud and send the download link instead of the file directly?

    Cheers,
    Alex

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