Closed Bug 1010697 Opened 12 years ago Closed 12 years ago

[Midori][3rd_Party_App][Captain Roger]The game sound can not be closed after lock screen

Categories

(Tech Evangelism Graveyard :: Other, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sync-1, Assigned: andrzej.mazur)

Details

Attachments

(1 file)

44.51 KB, application/octet-stream
Details
DEFECT DESCRIPTION: The game sound can not be closed after lock screen REPRODUCING PROCEDURES: 1.Open the Captain Roger game->open the game sound->lock screen->the game sound can not be closed->KO EXPECTED BEHAVIOUR: KO:The game sound will be closed after lock screen ASSOCIATE SPECIFICATION: TEST PLAN REFERENCE: TOOLS AND PLATFORMS USED: SW220+ZF10 USER IMPACT: MID REPRODUCING RATE: 5/5 For FT PR, Please list reference mobile's behavior:
Attached file jrdlog —
Please notify the developer to fix it, thanks.
Hi Nicole, could you help to assign this issue to the correct contact of Captain Roger
Assignee: nobody → other
Component: Gaia → Other
Flags: needinfo?(nfong)
Product: Firefox OS → Tech Evangelism
andrzej.mazur@end3r.com - please review and provide a potential fix date. Thanks!
Assignee: other → andrzej.mazur
@ andrzej.mazur@end3r.com, This app is pre-installed in our devices for many countries. Can you help to solve this bug please? Thanks
Flags: needinfo?(andrzej.mazur)
I don't think it's possible to detect the screen lock from the game level, after all the game is still running in the background, so is the sound. Jason, do you know if there's a way to do it?
Flags: needinfo?(andrzej.mazur) → needinfo?(jweathersby)
@andrzej.mazur@end3r.com When the lock screen is loaded do you get a mozvisibilitychange event?
Flags: needinfo?(jweathersby) → needinfo?(andrzej.mazur)
Dears, Any update for this issue?
I've implemented the Page Visibility API, it works fine on desktop Firefox, but it doesn't seem to work on Firefox OS the way you expect it. After debugging the app it looks like there's no (moz)visibilitychange event when you're on the lock screen, though the API itself is working as the event is sent when the game is in the background on the list of active apps. See the updated game here: http://rogers.enclavegames.com
Flags: needinfo?(andrzej.mazur)
Andrzej, Can you try: (function () { function handleVisibilityChange() { if (document.hidden) { console.log("hidden"); } else { console.log("visible"); } } document.addEventListener("visibilitychange", handleVisibilityChange, false); })();
I've added even more expanded version doing the same, from this article: https://developer.mozilla.org/en-US/docs/Web/Guide/User_experience/Using_the_Page_Visibility_API I've pushed the console.log to the code base at http://rogers.enclavegames.com
Flags: needinfo?(nfong)
With the help from Jason Weathersby I was able to fix the bug, you can see the actual source code on GitHub: https://github.com/EnclaveGames/Captain-Rogers/tree/gh-pages The gh-pages branch is up to date and is pointing directly to http://rogers.enclavegames.com/ Can you please test it and if the fix is confirmed close the bug?
Flags: needinfo?(zhaolingling)
Dear Andrzej, I updated this app from http://enclavegames.com/play/captain-rogers-fxos/manifest.webapp, but the version is 1.2.2, it is not update. Can you tell me the updated version?
Flags: needinfo?(zhaolingling)
I totally forgot there's still some code out there, it was the first test version, last edited in December. I moved the development to GitHub pages some time ago. I've updated it with the latest source code, but the always-up-to-date version is on GitHub and available here: http://rogers.enclavegames.com/manifest.webapp
Unable to reproduce on Flame v1.3. Changing status to Resolved-Fixed. Thanks Andrzej!
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: