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

BlackBerry Push 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: 103
Registered: ‎03-31-2011
My Device: Curve 9330
My Carrier: Verizon

Webworks push in background start page

Hi

I have a webworks app.

 

My push is on a background start page.  And I have a different home page as the foreground start page.

 

Now my registration alert comes up "null" after each start of app 2 or 3 times then "success"  when I run it as a foreground start page.

 

So when its in background start page setting  does it reload ever now and then or only once?  And if once and that time is "null"  I will never have a success registration.

 

Should I put my push in both the background page and the foreground page?  or am I missing something?

 

Trusted Contributor
Posts: 152
Registered: ‎02-12-2011
My Device: Not Specified

Re: Webworks push in background start page

Have you made any head way with this? 

 

I am using a similar approach. It works on 1st install but subsequent notifications after reading the first notification seems to not fire off. I even tried putting it on an onExit event....I'm not sure whats going on

Trusted Contributor
Posts: 103
Registered: ‎03-31-2011
My Device: Curve 9330
My Carrier: Verizon

Re: Webworks push in background start page

Well....no   what I have done is on the home page (index.htm)  I did made a main function that loads on body.  In that I call the openBISPushListener first then my other methods.  It seems to be working fine even if the app is closed

Trusted Contributor
Posts: 152
Registered: ‎02-12-2011
My Device: Not Specified

Re: Webworks push in background start page

Actually I got it to work on the background start page. the wakuppage is the same background start page...seems to work as well.

Trusted Contributor
Posts: 103
Registered: ‎03-31-2011
My Device: Curve 9330
My Carrier: Verizon

Re: Webworks push in background start page

Cool   I believe then after a push is received when you open the app it will open on your background page not the index page.  Correct?  

Trusted Contributor
Posts: 152
Registered: ‎02-12-2011
My Device: Not Specified

Re: Webworks push in background start page

hmmm actually this is the part that puzzles me... Does it automatically open your app? because What I do is upon recieving the notification I showBannerIndicator() 

 

 

So the user will have to manually open the app....

 

 

However I note that AFTER the first push notification I am unable to recieve any more without "re-installing" the app.

Regular Visitor
Posts: 1
Registered: ‎09-15-2011
My Device: 9800
My Carrier: Rogers

Re: Webworks push in background start page

Any luck on this issue? Is it possible to resume background app?

Trusted Contributor
Posts: 103
Registered: ‎03-31-2011
My Device: Curve 9330
My Carrier: Verizon

Re: Webworks push in background start page

Not anything more than stated above. I really didn't need to have mine in the back ground. And you can't force the app to go into the foreground via push if that is what you mean.

Just set your wakePage to your background page if you want that page to load after a push.
Highlighted
Developer
Posts: 268
Registered: ‎08-19-2009
My Device: Bold 9700

Re: Webworks push in background start page

You can set your wakeuppage to requestForeground() on some <body onload=> or init() function. This would effectively bring your app into the foreground on a push.