Skip to content
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

Needs screen orientation lock #2

Open
scootergrisen opened this issue May 5, 2015 · 3 comments
Open

Needs screen orientation lock #2

scootergrisen opened this issue May 5, 2015 · 3 comments

Comments

@scootergrisen
Copy link

When i visit http://orb.enclavegames.com/ on by phone (Geeksphone Peak) and tilt the phone to play the game, the browser orientation changes.

So screen orientation lock is needed.

Along with fullscreen mode.

@end3r
Copy link
Member

end3r commented May 10, 2015

Well, it's not possible (yet) to do a proper, 100% working "lock" on a webpage. For Firefox OS app though it is already set up in the manifest file - as orientation: portrait, so if you would install it, the lock would work. The same goes with fullscreen.

I haven't pushed the game to the Marketplace as I haven't decided if it should be done with a tech demo like this.

@scootergrisen
Copy link
Author

I did not see an option to install the app.
You can use navigator.mozApps.install() to offer the user an install button.
https://developer.mozilla.org/en-US/docs/Web/API/DOMApplicationsRegistry/install

I made this page, maybe you can learn something from it : http://netkoder.dk/netkoder/webapp.php

@end3r
Copy link
Member

end3r commented May 11, 2015

There wasn't an option to install it - it's not that I don't know how to do it (I wrote a few tutorials myself), I just wasn't sure if a simple game demo like this needs to be a Firefox OS app and/or should be published in the Marketplace.

The ability to install it from the Web is a good idea though and I'm gonna add it in the next few days, thanks for pointing that out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants