-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As a WebWorks developer, I can subscribe to events that will notify me when my application is paused or resumed #5
Comments
can you post the exact signatures or a link to the documentation? |
http://docs.phonegap.com/en/1.5.0rc1/phonegap_events_events.md.html#Events Ken Wallis Research In Motion -----Original Message-----
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful. |
page visibility, perhaps? http://www.w3.org/TR/2011/WD-page-visibility-20110602/ |
@efidlerrim Are you suggesting we use the page Visibility signature or we implement a webworks api based on this existing webkit event? |
it seems like (at least some of) this functionality basically duplicates Page Visibility, so why not use it? We don't have it on PB2.0. |
Does our implementation of page visibility reflect the actual state of the configure for if/when the application execution is actually paused?Ken Wallis Research In Motion -----Original Message-----
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful. |
Should do. Eli On 3/27/12 12:13 PM, "Ken Wallis"
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful. |
@kwallis I am currently working on the implementation. What we do currently is we define a callback that gets invoked by the web launcher whenever the window state is changed. The web launcher calls this callback with 3 possible window states: fullscreen, thumbnail, or invisible. The code would trigger the onPause callback whenever window state == thumbnail, or the onResume callback whenever state == fullscreen. |
This is dependent on the system setting though? Settings -> General -> Application Behavior. If you select Showcase or Default, the app would still be running even in We need these settings to be respected. Does the web launcher, or right indicator of the application behavior.Ken Wallis Research In Motion -----Original Message-----
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful. |
I've tested it. window states aren't tied to Application Behaviour. I would need to find another way to do it. |
@kwallis I found that WebWorks for PB implemented onForeground/onBackground API based on window state before. I checked the code. It relies on flash.events.Event.activate/deactivate. This is the description for the activate event in Flash documentation: "Dispatched when the Flash Player or AIR application gains operating system focus and becomes active" |
This does not necessarily equate to the window state that you outlined code is actually relying on to know if it is what window state is?Ken Wallis Research In Motion -----Original Message-----
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful. |
Feature implemented by blackberry-webworks/BB10-WebWorks-Framework#16 |
Released |
The developer will want to be able to perform some logic when their application is put into background mode by the system. Same for when the application returns toi execution (i.e. put in foreground).
Acceptance Criteria
The text was updated successfully, but these errors were encountered: