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
New Developer
Posts: 20
Registered: ‎03-23-2014
My Device: z10
My Carrier: fido

Card life cycle

Hi,

 

I wanna know the life cycle of a card. Basically, my card is called from browser when the URL match a specific pattern. When the card is invoked, i init UI and add a few extra widget depending on the network status. However, what I observe is that if user close the card (swipe left to right), the UI is not reset, the next time the card is called, its widget get duplicated. Is swiping left to right actually closing the card and terminate the app ?

 

 

Retired
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: Card life cycle

Your card is probably getting pooled, which can happen sometimes if the system feels it's appropriate. Listen for the cardPooled signal. More details on how to handle it here: https://developer.blackberry.com/native/documentation/cascades/device_platform/invocation/creating_c...

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker