javascript - App Orientation not working in Firefox OS packaged "web" type app -
i trying make app should work in portrait view. test app in device uploading files including manifest file in local apache server , install in device function
navigator.mozapps.install(manifesturl);
written in install.html file. while installing phone correctly detecting manifest file , shows app name developer , on provided in manifest file. while running app orientation not working well. when rotate device app gets rotated. manifest file
{ "name": "mathbrain", "description": "let calculate", "launch_path": "/mathbrain2/index.html", "icons": { "16": "/icons/icon16x16.png", "48": "/icons/icon48x48.png", "60": "/icons/icon60x60.png", "128": "/icons/icon128x128.png" }, "type": "web", "fullscreen":"allowed", "permissions": {}, "orientation": ["portrait"], "developer": { "name": "your name or organization", "url": "http://your-homepage-here.org" } }
including
screen.mozlockorientation("portrait");
in app js file works there other issues , want make app work in portrait providing in manifest file itself.
Comments
Post a Comment