My app is not fully embedding, being denied permission
Hi. So I am making a Firefox OS webapp. I'm using the <iframe> function to display a web page. The problem is that only about a 3rd of the screen is displaying the web space. Here is a screenshot: http://i.imgur.com/POJU3lL.png
Here are the 2 errors in my firefox os simulator:
Denied permission 'browser' for app type 'web'.
Denied permission 'embed-apps' for app type 'web'.
Here is my manifest.webapp:
{ "name": "Forum", "description": "testing, testing!", "permissions": { "browser": {}, "embed-apps": {} }, "launch_path": "/index.html", "developer": { "name": "Mobile Mod", "url": "http://mobilemod.net" }, "icons": { "16": "/img/icon16.png", "32": "/img/icon32.png", "48": "/img/icon48.png", "64": "/img/icon64.png", "128": "/img/icon128.png" }, "default_locale": "en" }
How do I extend the size of the <iframe>?
Upravil(a) cor-el dňa
Vybrané riešenie
Nothing to be sorry about!
So you just want to display your page. That will make it a lot easier... All you need is a manifest in your site's root directory.
I can't help anymore tonight (very late here). Please email me (joshua-smith@verizon.net) the rest of your questions, and I will work with you to get everything working =)
- iNerd
Čítať túto odpoveď v kontexte 👍 0Všetky odpovede (5)
Hello,
The iframe issue is because iframes are sized differently than other elements like divs. Some styles like height: 100%; probably won't work. You may want to use the css calc property instead.
As for the manifest issue, you need to specify the "Description" property for each permission according to MDN. Anyway, you don't need the embed-apps permission if your app doesn't need to install other apps. Also, the Browser API is only needed if you need advanced browsing functions. The more permissions your app needs, the harder it is to get it approved on the Marketplace.
Hope this helps!
Joshua Smith (iNerd)
Upravil(a) Joshua Smith dňa
Okay, so I am still a bit confused. Essentially what I wanted this app to do was display my forum. I wanted to put buttons on the bottom of the screen for back/forward, forum home, and private messages. I don't quite understand the css calc properties since I am not trying to create a webpage, only trying to display it.
Also, just wanted to clarify that I am quite the noob when it comes to this stuff. Sorry about that.
Vybrané riešenie
Nothing to be sorry about!
So you just want to display your page. That will make it a lot easier... All you need is a manifest in your site's root directory.
I can't help anymore tonight (very late here). Please email me (joshua-smith@verizon.net) the rest of your questions, and I will work with you to get everything working =)
- iNerd
Thanks for the help. I will email you. :)