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
Contributor
alejandroh
Posts: 13
Registered: ‎11-30-2012
My Device: Alpha
My Carrier: Pepephone

Re: Some issue fetch in BBMQtInviteToDownload Code.

Before didn't check the status, but now, when I have change it, the Abort error desapears, but now, requestRegisterApplication return false, and the ResgistrationState is Unregistered. My code is:

 

 

mContext = new bb::platform::bbm::Context( QUuid( QString::fromUtf8(uuid) ) );
	emit registrationStatus(mContext->registrationState());

	qDebug() << "here";
	BBMContext::instance()->setContext(mContext);

	//Setup the registration callback.
	bool bSuccess =
			QObject::connect(mContext,
					SIGNAL(registrationStateUpdated(bb::platform::bbm::RegistrationState::Type)),
					this,
					SLOT(registrationStatus(bb::platform::bbm::RegistrationState::Type)));


	bSuccess = mContext->requestRegisterApplication();

 

Please use plain text.