Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
santito95
Posts: 129
Registered: ‎02-24-2013
My Device: BlackBerry Z10 LE
My Carrier: Telcel

Invoke Core App Mail From Query (Before InvokeQuery) SDK 10.1

Hi guys..

 

I Recently updated the SDK to version 10.1 and I could see that many errors appear in the code.

Among them, InvokeQuery that has become query, I can no longer use it to attach and invoke the email function, specifically I get the following error:

 

"Unknown scheme:'mailto'"

 

How to fix this problem?

 

This was my code, the funny thing is that if I compile and ignore the errors, it works, but is uncomfortable

 

actions: [
    ActionItem {
        id: compartir1
        title: qsTr("Technical Support")
        imageSource: "asset:///images/msg.png"
        ActionBar.placement: ActionBarPlacement.OnBar
        
            onTriggered: {
              
               invoke.trigger("bb.action.SENDEMAIL")
            }
                                          attachedObjects: [
            Invocation {
                id: invoke
                query: InvokeQuery {
                    id: invq
                    mimeType: ""
                    invokeTargetId: "sys.pim.uib.email.hybridcomposer"
                    uri: "mailto:santito95@zonablackberry.com?subject=My%20Device%20Info:%20Support"
                    invokerIncluded: true
                    onQueryChanged: invq.updateQuery()
                }

            }
             ]  
        }

 Many Thanks

 

Regards

Please use plain text.