Hello,
i have made my first app. The only special permission i need is, to do
XMLHTTPTransfer.
I have all files in a local folder and made a manifest. With
"type": "privileged",
"permissions": {
"systemXHR": {"description":"For data synchronisation"}
}
all runs fine in Simulator and on the device.
But when i just pack all together and upload it to the marketplace, i get
hundreds of csp errors. The code is old and yes, i do some things, that violate
the csp. I can't fix it very easy.
When i change the type to web, i cant use XHR. I'm right? I have tried and get
a network error.
So i uploaded all files to a subfolder of my webspace. All XHR go to this
website, so i have no problem. I added a appcache for offline usage and all
should be fine.
But in simulator i always get a warnign about a missing 128 pixel icon. It is
there. I have tried all variants, the error was still there. When pusehd to
device also the app name was not from manifest.
So, please can anyone proof, if my structure is right?
The app is inside: https://www.[somedomain].com/ffapp
Manifest is https://www.[somedomain].com/ffapp/manifest.webapp
Images and icons are in https://www.[somedomain].com/ffapp/img folder
The startpage is https://www.[somedomain].com/ffapp/index.html
I need the https, because the xhr go to https://www.[somedomain].com/[some
script]
In manifest i have:
"launch_path": "/index.html",
"icons": {
"128": "/img/icon128.png",
"30": "/img/icon30.png",
"60": "/img/icon60.png"
Is this correct?
How can i test this with the simulator or on the device? When i do i get a grey
screen with the market rocket icon, but nothing more happens.
I have also tried including the full path and other things.
best regards
Horst
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g