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
SuhairZain
Posts: 123
Registered: ‎09-18-2013
My Device: Dev Alpha B

LinkedIn not opening invoked profiles

Hi,

 

https://developer.blackberry.com/native/documentation/cascades/device_platform/invocation/linkedin.h...

 

as said in the site above, I tried to open a profile by invoking LinkedIn, but every time I try to open a profile, an error is displayed by the LinkedIn app. 

 

"Failed to retrieve the profile information. Sorry, there was an internal error for this operation!"

 

Some bug within the LinkedIn app..??

 

I used the correct Uri- 

linkedin:contact:in.linkedin.com/suhairzain

 for example..

Please use plain text.
Developer
BBSJdev
Posts: 6,116
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: LinkedIn not opening invoked profiles

Can you post the whole invocation snippet?


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
SuhairZain
Posts: 123
Registered: ‎09-18-2013
My Device: Dev Alpha B

Re: LinkedIn not opening invoked profiles

void ApplicationUI::openLI()
{
	invokeRequest->setTarget("com.linkedin.urihandler");
	invokeRequest->setAction("bb.action.VIEW");
	invokeRequest->setUri("linkedin:contact:" + rliID);
	qDebug()<<invokeRequest->uri();

	invokeReply = invokeManager->invoke(*invokeRequest);

	if(invokeReply)
	{
		invokeReply->setParent(this);
		connect(invokeReply, SIGNAL(finished()), this, SLOT(invokeFinished()));
	}
}

 

void ApplicationUI::invokeFinished()
{
	switch (invokeReply->error())
	{
	case InvokeReplyError::NoTarget:
		qDebug()<<"Target not found";
		break;
	case InvokeReplyError::BadRequest:
		qDebug()<<"Bad request";
		break;
	case InvokeReplyError::Internal:
		qDebug()<<"Internal error";
		break;
	default:
		qDebug()<<"No errors found, carried out successfully";
		break;
	}

 The result is "No errors found...".

 

Please use plain text.
BlackBerry Development Advisor
sabdelsayed
Posts: 249
Registered: ‎08-17-2012
My Device: BlackBerry Z10 and Q10

Re: LinkedIn not opening invoked profiles

Hi SuahirZain,

 

I have tried out your code using the 10.2 SDK and OS and it indeed it doesn't open the specified LinkedIn profile. It seems to be a bug in the linkedin application as an invoke target. Could you please open a jira ticket with this issue: https://www.blackberry.com/jira/secure/Dashboard.jspa?

 

Once done, please share the link to the issue here and i will escalate internally.

 

@SamarAbdelsayed

Did this answer your question? Please accept post as solution.
Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.
Developer
SuhairZain
Posts: 123
Registered: ‎09-18-2013
My Device: Dev Alpha B

Re: LinkedIn not opening invoked profiles

Please use plain text.