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
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?

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,784
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.
Found a bug? Report it using Issue Tracker
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.

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

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