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
Contributor
wtdnielsen
Posts: 30
Registered: ‎09-19-2013
My Device: None
Accepted Solution

Invoke WebWorks app in background

Hello

I am developing an app that should invoke another app that I have created. The app that should be invoked most then start an update task that updates its data in the database. I dont want my invoked app to be visible for the user. Is this possible? if not, what is my alternative?

BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: Invoke WebWorks app in background

On the native side, there is the concept of headless applications:
https://developer.blackberry.com/native/documentation/cascades/device_platform/headless_apps/index.h...

However this has not yet made its way to the WebWorks side yet. When you invoke an application through the APIs, it will show up in the Applications tab / come to the foreground.

You may be able to work around the foreground by initiating a push from your application, which would be received by the target application. This would allow the invocation to occur, the application would still be visible in the Applications tab, but it would not automatically claim the foreground.

Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Contributor
wtdnielsen
Posts: 30
Registered: ‎09-19-2013
My Device: None

Re: Invoke WebWorks app in background

thank you for your answer. So you are saying that one App can send a push message to another? Is there a tutorial on the net that demonstrates this? Would be nice
BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: Invoke WebWorks app in background

[ Edited ]

I posted up a sample here for discussion on initiating pushes client-side. Let me know if you have any questions.

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Client-Side-Push-Inititator/td-p...

 

EDIT: The client-side Push Receiver woudl be impemented in the normal fashion.

https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/pushCapture


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.