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
Highlighted
Developer
Posts: 828
Registered: ‎10-16-2012
My Device: Red Z10
My Carrier: Rogers

Flurry QSocketNotifier error

[ Edited ]

I've got flurry setup and everything appears correct, but when i run my function to save a set of test variables i get in the console.log output

 

QSocketNotifier: Can only be used with threads started with QThread

 

Was wondering if anyone else has had a go with flurry and might know anything that will help

 

main.cpp

*the only thing I have noticed that I'm unsure what to do with is &anOPtions= Map(); 

Flurry::Analytics::StartSession(const String &anAPIKey, const Map &anOptions = Map() );

 

 

because the maps are created in my applicationUI.cpp & I don't know how to reference that back to main, but even then i'm under the impression that I would need to use Flurry::Map for a lot more than just 1 set of parameters.

void ApplicationUI::flurry()
{
Flurry::Map parameters;
parameters["Element"] = "Working";
Flurry::Analytics::LogEvent("Selected_Element", parameters);
qDebug() << "Flurry should receive signal";
}

 

Developer
Posts: 28
Registered: ‎03-16-2013
My Device: Z10

Re: Flurry QSocketNotifier error

Hi!

Did you resolve this "QSocketNotifier: Can only be used with threads started with QThread" issue?

Does Flurry work correctly?

Developer
Posts: 828
Registered: ‎10-16-2012
My Device: Red Z10
My Carrier: Rogers

Re: Flurry QSocketNotifier error

I belive this error was caused because I did not have the read device identifying information permission enabled.