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
lildeimos
Posts: 58
Registered: ‎05-21-2012
My Device: DA C, Z10 LE
My Carrier: Wind

InvokeQuery issue ?

Hi,

 

I noticed now that I have an issue with InvokeQuery. Maybe this happened after the last FW update, can't tell for sure.

After NFC connection it give me an error: "Could not share data over NFC, please tap again".

Here what I do:

 

    // this gives "Could not share data over NFC, please tap again" after connection
    bb::cascades::InvokeQuery* q( bb::cascades::InvokeQuery::create().
                                  parent(this).
                                  mimeType("text/txt").
                                  data(QString("http://google.com").toUtf8()).
                                  invokeActionId("bb.action.SHARE")
                                 );
    m_pInvocation = Invocation::create( q );
    QObject::connect(m_pInvocation, SIGNAL(armed()), this, SLOT(onInvokeUrlShareArmed()));
    QObject::connect(m_pInvocation, SIGNAL(finished()), this, SLOT(onInvokeUrlShareDelete()));
     
     
    // also with this doesn't work
    bb::cascades::InvokeQuery* q( bb::cascades::InvokeQuery::create().
                                  parent(this).
                                  uri(QUrl("http://google.com")).
                                  invokeActionId("bb.action.SHARE")
                                 );

 

I am sure that some times ago the second query was working and my other phone, after get the data, was opening correctly its own browser.

Did I made some mistakes ?

Any help is greatly appreciated

thanks

Please use plain text.