> 
> > 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

Perfect!!

Thanks!!
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps

Reply via email to