Hi Peter,

the permission is listed @ 
https://developer.mozilla.org/en-US/docs/Web/Apps/App_permissions  

Just to make sure, you need to work on a packaged app and set the type to 
"privileged" to be able to add the permission "mobilenetwork".

To ensure that you have the latest Simulator version, download the latest 4.x 
preview from https://ftp.mozilla.org/pub/mozilla.org/labs/r2d2b2g/ , or wait a 
short time to see the 4.0 announcement on our hacks blog. It is working in 
1.0.1, especially as the Marketplace is using the code linked by Matt.  

---
Harald Kirschner | Partner Engineer & Web Craftsman | [email protected] 
(mailto:[email protected])


El miércoles, julio 10, 2013 a las 7:48 PM, Peter Rukavina escribió:

> On Wednesday, 10 July 2013 18:19:09 UTC-3, Matt Basta wrote:
> > You want to use the navigator.mozMobileNetwork API. You can see an example 
> > of it's usage in the wild here:
> >  
> > https://github.com/mozilla/fireplace/blob/master/hearth/media/js/mobilenetwork.js#L263
> >  
> > That will give you the MCC and MNC and some other data. You'll need to 
> > request the "mobilenetwork" permission for it to work, which means you'll 
> > need to be a privileged app.
>  
> I'm confused: I don't see any reference to the "navigator.mozMobileNetwork 
> API" on the list of Firefox OS APIs 
> (https://developer.mozilla.org/en-US/docs/WebAPI) and when I attempt to use 
> the "mobilenetwork" permission in my manifest the simulator complains with 
> "Unknown permission 'mobilenetwork'."
>  
> https://bugzilla.mozilla.org/show_bug.cgi?id=866272 seems to be where this 
> additional feature is being discussed
>  
> Perhaps this is something not yet supported by my device (Peak running 
> 1.0.1.0-prerelease) or the simulator?
>  
>  
>  
> _______________________________________________
> dev-webapps mailing list
> [email protected] (mailto:[email protected])
> https://lists.mozilla.org/listinfo/dev-webapps
>  
>  


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

Reply via email to