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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Trusted Contributor
Posts: 195
Registered: ‎03-12-2012
My Device: PlayBook
My Carrier: None

bbmsp_send_download_invitation does nothing on dev alpha

  if (bbmsp_is_access_allowed()) {

    // Insert your code here to retrieve the user's profile or

    // add profile box items.

	  rc = bbmsp_get_user_profile(user_profile);

	  bbmsp_profile_get_display_name(user_profile,
	  			  display_name, 99);

	  fprintf(stderr, "**** display name: %s\n", display_name);

	  rc = bbmsp_send_download_invitation();
	  fprintf(stderr, "download rc = %d\n", rc);


  }

 In the above code, the display_name was obtained successfully.  However, the call to bbmsp_send_download_invitation returns a success return code but does nothing (no window popping up for user to choose contacts).  All help appreciated.

 

Using the Gold SDK and the latest OS on the dev alpha.

Sucroid.com
Sweet Apps for the Fans
Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: bbmsp_send_download_invitation does nothing on dev alpha

You don't need this part:

	  rc = bbmsp_get_user_profile(user_profile);

	  bbmsp_profile_get_display_name(user_profile,
	  			  display_name, 99);

	  fprintf(stderr, "**** display name: %s\n", display_name);

for 'request to download' to function properly (at least I don't have it). Though can't advise why you are not seeing pop up. Do you see all BBM permissions for your app OK?

Highlighted
Trusted Contributor
Posts: 195
Registered: ‎03-12-2012
My Device: PlayBook
My Carrier: None

Re: bbmsp_send_download_invitation does nothing on dev alpha


BGmot wrote:

You don't need this part:

	  rc = bbmsp_get_user_profile(user_profile);

	  bbmsp_profile_get_display_name(user_profile,
	  			  display_name, 99);

	  fprintf(stderr, "**** display name: %s\n", display_name);

for 'request to download' to function properly (at least I don't have it). Though can't advise why you are not seeing pop up. Do you see all BBM permissions for your app OK?


Indeed, that part isn't needed.  But I threw it in to make absolutely sure that BBM is working (to some degree).  All the BBM permissions for the app have been set.  So I don't understand why the pop-up is not showing up.  Faulty Dev Alpha?  (BTW, it refuses to boot since this morning.  Even on a full charge, it shows this battery icon with an exclamation mark.  This is the worst thing that could happen right before a port-a-thon. Smiley Sad)

Sucroid.com
Sweet Apps for the Fans
BlackBerry Development Advisor
Posts: 15,885
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: bbmsp_send_download_invitation does nothing on dev alpha

I've been able to reproduce the invite to download issue and logged it in Issue Tracker here:  bbmsp_send_download_invitation does nothing

 

Regarding the battery icon issue, have you tried to hold down the power button for 30 seconds (keep holding even after you see the red light)?  Do you have a BlackBerry Dev Alpha A or B?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: bbmsp_send_download_invitation does nothing on dev alpha

>I've been able to reproduce the invite to download issue and logged it in Issue Tracker here:  

Could you please share - does it happen randomly? or it is bound to a device? I get BBM popped up no mater how many times I try.

Thanks.

Trusted Contributor
Posts: 195
Registered: ‎03-12-2012
My Device: PlayBook
My Carrier: None

Re: bbmsp_send_download_invitation does nothing on dev alpha

Thanks for confirming the issue.  I have pressed the button for 30 seconds and I'll see what happens next.

 

I have a Dev Alpha A.


MSohm wrote:

I've been able to reproduce the invite to download issue and logged it in Issue Tracker here:  bbmsp_send_download_invitation does nothing

 

Regarding the battery icon issue, have you tried to hold down the power button for 30 seconds (keep holding even after you see the red light)?  Do you have a BlackBerry Dev Alpha A or B?


 

Sucroid.com
Sweet Apps for the Fans