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)
Tech Evangelism Graveyard
Other
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:
Comment 2•12 years ago
|
||
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
Comment 4•12 years ago
|
||
andrzej.mazur@end3r.com - please review and provide a potential fix date. Thanks!
Assignee: other → andrzej.mazur
Comment 5•12 years ago
|
||
@ andrzej.mazur@end3r.com,
This app is pre-installed in our devices for many countries.
Can you help to solve this bug please?
Thanks
Updated•12 years ago
|
Flags: needinfo?(andrzej.mazur)
| Assignee | ||
Comment 6•12 years ago
|
||
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)
Comment 7•12 years ago
|
||
@andrzej.mazur@end3r.com
When the lock screen is loaded do you get a mozvisibilitychange event?
Flags: needinfo?(jweathersby) → needinfo?(andrzej.mazur)
Comment 8•12 years ago
|
||
Dears,
Any update for this issue?
| Assignee | ||
Comment 9•12 years ago
|
||
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)
Comment 10•12 years ago
|
||
Andrzej,
Can you try:
(function () {
function handleVisibilityChange() {
if (document.hidden) {
console.log("hidden");
} else {
console.log("visible");
}
}
document.addEventListener("visibilitychange", handleVisibilityChange, false);
})();
| Assignee | ||
Comment 11•12 years ago
|
||
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
Updated•12 years ago
|
Flags: needinfo?(nfong)
| Assignee | ||
Comment 12•12 years ago
|
||
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)
Comment 13•12 years ago
|
||
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)
| Assignee | ||
Comment 14•12 years ago
|
||
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
Comment 15•12 years ago
|
||
Unable to reproduce on Flame v1.3. Changing status to Resolved-Fixed. Thanks Andrzej!
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•