We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

sharing plain text with mail app [answered]

asked 2017-11-04 20:52:42 +0300

pawel gravatar image

updated 2017-11-05 08:38:49 +0300

i have implemented a very simple sharing in my app using this code: https://together.jolla.com/question/18536/is-there-any-social-sharing-api/

all i am doing is to share plain text that contains an url.

i have defined the type as text/plain. name is 'my plans'

now when i use 'share to android', i can perfectly share the link with telegram and even native e mail app (jolla). when i try to share with mail app directly from share ui, nothing will arrive i think i was able to share it as kind of attachment when name was .html and type text/html.

but not as mail content, but an attachment.

sharing via android

image description

image description

image description

sharing directly

image description

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by pawel
close date 2017-11-06 18:22:41.503626

1 Answer

Sort by » oldest newest most voted
1

answered 2017-11-06 18:20:00 +0300

pawel gravatar image

updated 2017-11-06 21:38:22 +0300

when i additionally also set status attribute (the actual link) it works. is this a bug or not ?! please decide

the type is not relevant, i did try several: plain, x-url .. works with all.

ShareMethodList {
    id: shareMethodList
    anchors.top: header.bottom
    width: parent.width

    content: {
        "name": sharedName,
        "data": sharedContent,
        "type": "text/x-url",
        "status" : sharedContent,
        "linkTitle": "jan.html"
        //"icon": "../sk-badge-white.png"
    }
    filter: defaultType
edit flag offensive delete publish link more

Question tools

Follow
1 follower

Stats

Asked: 2017-11-04 20:52:42 +0300

Seen: 4,657 times

Last updated: Nov 06 '17