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

Web and WebWorks Development

Reply
Developer
Posts: 132
Registered: ‎02-17-2012
My Device: Bold 9900
My Carrier: AT&T

BBM integration when launch

So I have figured out how to make BBM work using buttons 

 

Im using a button that registers and after the app has registerd I can update the status with another button I made.

 

Now I want to make it so everytime the user launches the app it checks to see if its registerd and asks the user if he/she wants to update the status.

 

 

Thank you in advanced.

Developer
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900
My Carrier: Rogers

Re: BBM integration when launch

add <body onload="RegisterBBM();"> to html

where RegisterBBM is your Register function

Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!
Highlighted
Developer
Posts: 132
Registered: ‎02-17-2012
My Device: Bold 9900
My Carrier: AT&T

Re: BBM integration when launch

[ Edited ]

in my index.html right?

 

<script type="text/javascript">
'use strict';

function onwebworksready() {
document.removeEventListener('webworksready', onwebworksready, false);

bb.init();
bb.pushScreen('timer.html', 'timer');

body onload="RegisterBBM();"




}

function onload() {
window.removeEventListener('load', onload, false);
document.addEventListener('webworksready', onwebworksready, false);
}
window.addEventListener('load', onload, false);
</script>
</body>

Like that?

Developer
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900
My Carrier: Rogers

Re: BBM integration when launch

Read this http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/BB10-BBM-Integration/td-p/194088...

 

My method is different. 

Mine is actually in the body tag put onload="RegisterBBM();"

That thread has what you need though so check it out =)

 

 

 

 


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!
Developer
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900
My Carrier: Rogers

Re: BBM integration when launch


ignites wrote:

Read this http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/BB10-BBM-Integration/td-p/194088...

 

My method is different. 

Mine is actually in the body tag put onload="RegisterBBM();"

That thread has what you need though so check it out =)

 

 

 

 


Specifically I am referring to page 2 Smiley Wink


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!