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
Posts: 29
Registered: ‎04-02-2013
My Device: BlackBerry Z10
My Carrier: Telus
Accepted Solution

isBbmSetup?

I am trying to use the isBbmSetup() function introduced in 10.2 but it keeps returning false even when BBM is set up on the device.

 

	RegistrationHandler *registrationHandler = new RegistrationHandler(uuid,app);

	m_context = registrationHandler->context();

	if (m_context->isBbmSetup()){
		qDebug() << "rjshahan bbm setup ";
		//connect(m_context, SIGNAL(registrationStateUpdated(bb::platform::bbm::RegistrationState::Type)), registrationHandler,	SLOT(processRegistrationStatus(bb::platform::bbm::RegistrationState::Type)));
	}
	else{
		qDebug() << "rjshahan bbm not setup ";
	}

 

Any suggestions?

Highlighted
BlackBerry Development Advisor
Posts: 15,727
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: isBbmSetup?

You need to start BBM Registration before isBbmSetup returns valid values.

 

In the BBM sample applications, you could do this check in case BbmRegistrationProgress:Smiley Tongueending: of RegistrationHandler:Smiley TonguerocessRegistrationStatus, or any point after that.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 29
Registered: ‎04-02-2013
My Device: BlackBerry Z10
My Carrier: Telus

Re: isBbmSetup?

Thanks Mark.