This is great information. I’ve written this up on our apps FAQ: https://developer.mozilla.org/en-US/Apps/Developing/App_development_FAQ#How_can_I_detect_whether_an_app_is_privileged_or_certified.3F
Chris Mills Senior tech writer || Mozilla developer.mozilla.org || MDN [email protected] || @chrisdavidmills On 3 Feb 2014, at 15:47, Fabrice Desré <[email protected]> wrote: > On 02/03/2014 04:28 AM, [email protected] wrote: >> I'm writing an app and I want to submit the app to the marketplace an to be >> hosted in my servers. >> My app is doing 'cors' calls. For hosted I'm using 'jsonp' to retrieve the >> info, for privileged app I'm using 'xhr'. >> My willing is to share the shame code an detect app type to use one way or >> another. >> How can i 'detect' if an installed app is 'hosted' or 'privileged'? >> Thanks. > > In your app, use navigator.mozApps.getSelf() to get an application > object that represents the app itself. You can then use the 'manifest' > property on the app object and the 'type' property on the manifest to > know if you're a privileged app or not. > > Fabrice > -- > Fabrice Desré > b2g team > Mozilla Corporation > _______________________________________________ > dev-webapps mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-webapps _______________________________________________ dev-webapps mailing list [email protected] https://lists.mozilla.org/listinfo/dev-webapps
