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
New Contributor
Posts: 5
Registered: ‎10-30-2013
My Device: Z10, Q10, Bold 9900
My Carrier: Rogers
Accepted Solution

Push a message out of an app to a named recipient - impossible?

Long story short, I am building an alarm. When the alarm triggers, if it is not reset within a short time, I want to be able to send a message (BBM would be best, text second best, and so on down the line) to a specific person/contact which is set in the user preferences. This is one message (as a bit of a fail safe) to a single contact/person who would have to be in the user's Contact list. I'm prepared to alert the user that this may incur data charges and so on and so forth.

 

Is this possible either directly from the app or indirectly through some other mechanize?

 

Thanks for your thoughts.

 

Cheers.

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

Re: Push a message out of an app to a named recipient - impossible?

You can programmatically compose a BBM message that is shown to the user to send, but it's up to them to press the send button.  You could send an SMS message.

 

Another option is to use the BlackBerry Push Service to push a message directly to your application.  Your application could then alert the user.  You can send push messages from one BlackBerry Smartphone to another.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
New Contributor
Posts: 5
Registered: ‎10-30-2013
My Device: Z10, Q10, Bold 9900
My Carrier: Rogers

Re: Push a message out of an app to a named recipient - impossible?

Good info. Not sure I see a solution yet though. This is an alarm that shows/acts on the user's device to get the user's attention - does that just fine right now. What I want to do is to take it to the next level - so the user doesn't respond to the alarm (who knows why) and I'd like to automatically (from the app, without user interaction) send a message to another person (not necessarily another user of my app) to alert them of the first person not responding to the alarm in the hopes that they (the second person) will see it and take action.

 

Hmmm. Think of it as setting the bedside clock alarm at the hotel for 6 AM and then telling the front desk to give you a wake up call at 6:15 if you haven't called them before that and told them not to call. Sorta kinda.

 

I'd be happy to send a BBM (which doesn't seem possible), or a text message (again, can I do that without user interaction to actually send?). Sending a Twitter message or updating a FaceBook status or BBM status seems not direct/urgent enough.

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

Re: Push a message out of an app to a named recipient - impossible?

For my suggestion, I'm assuming user 2 also has the application installed.  If they don't then you'd be limited to sending an SMS message.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
New Contributor
Posts: 5
Registered: ‎10-30-2013
My Device: Z10, Q10, Bold 9900
My Carrier: Rogers

Re: Push a message out of an app to a named recipient - impossible?

[ Edited ]

But, correct me if I am wrong, I cannot send a SMS directly (without user action to "send"), from within my app, to another device. I would need to go through a middleman/service of some sort. Or so I understood.

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

Re: Push a message out of an app to a named recipient - impossible?

SMS goes over the carrier network.  So both devices would need to be active on a cellular network.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
New Contributor
Posts: 5
Registered: ‎10-30-2013
My Device: Z10, Q10, Bold 9900
My Carrier: Rogers

Re: Push a message out of an app to a named recipient - impossible?

Rethinking this a bit. Can I automatically, with prior permission, from within the app update a user's BBM status? Fully automatically? I've heard from others that I could do this with Twitter - send a tweet for the user. But would rather use BBM......

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

Re: Push a message out of an app to a named recipient - impossible?

No, BBM status updates require user validation.  They need to click on the OK button before it'll take place.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
New Contributor
Posts: 5
Registered: ‎10-30-2013
My Device: Z10, Q10, Bold 9900
My Carrier: Rogers

Re: Push a message out of an app to a named recipient - impossible?

Twitter it is then. Many thanks.