firefox-os

TCP client in Firefox OS. No response from the server

霸气de小男生 提交于 2019-12-12 05:28:09
问题 I'm developing an app for Firefox OS which should communicate with the server via TCP connection. You can see the code below (the only difference is that I substituted actual ip address and port with variable names and excluded the content of loginButes (actually, there is exactly 24 bytes there)). The problem is that I can see only "Sent successfully" in console. So I don't obtain any response from the server at all. As far as I understand, there might be two possible reasons of this issue:

Firefox App Manager doesn’t detect Intex Cloud FX

有些话、适合烂在心里 提交于 2019-12-12 04:37:31
问题 Recently I bought a mobile phone named "Intex Cloud FX" (it’s the first device in India running Firefox OS). I purposely bought it for developing Firefox OS apps and testing them on a real device. The problem I face is that the Firefox App Manager can’t detect my phone for testing my local apps. I followed the instructions but couldn’t help myself. adb is successfully installed on my system i.e Mac OS X 10.10. So the question is: How to make App Manager detect my mobile device running Firefox

How to use images from the device in Firefox OS

╄→гoц情女王★ 提交于 2019-12-12 03:15:07
问题 In the application I'm building I want to show images from the device, but can't seem to figure out the proper way to do it. I'd like to let the user pick image, save the choice in localStorage and show it in img element. I tried modifying Firefox OS Boilerplate App code for picking images, but it doesn't work because the blob changes everytime the app is opened. I have also read docs on Device Storage API but it doesn't mention referencing images in the app. 回答1: It's hard to say any

Executing a script via AJAX on Firefox OS device

点点圈 提交于 2019-12-11 05:04:36
问题 My question regards the Apps CSP https://developer.mozilla.org/en-US/Apps/CSP Here it says that all the remote script, inline script, javascript URIs, and other security issues won't work on a Firefox OS app. So, I tried to download a script that is necessary for my app (Flurry and Ad service) and neither would work on the device. The way I made the call was with AJAX, that way I would avoid the remote and inline scripting that both scripts ment. In the simulator works perfectly, but on the

Install Firefox add-on into Firefox OS Firefox browser

江枫思渺然 提交于 2019-12-10 13:13:51
问题 I have developed some Firefox add-ons (extensions) already for Desktop and Mobile Firefox, but now I can't install the add-on/extension into the browser running in Firefox OS (I'm using the Simulator add-on). Please note I don't want to create a traditional Firefox OS application, but a traditional browser extension. I have the application ID from Fennec (aa3c5121-dab2-40e2-81ca-7ea25febc110) in install.rdf. I also tried Mobile a23983c0-fd0e-11dc-95ff-0800200c9a66, it does not work either. Is

Firefox OS privileged app: Permission denied to access property 'document' of new window object created

允我心安 提交于 2019-12-10 11:35:39
问题 In my Firefox OS privileged app I need authentication with Google. uri=https://accounts.google.com/o/oauth2/auth............ var googleWin = window.open(uri, 'auth_window', 'fullscreen=0,width=200,height=100,resizable=1'); console.log(googleWin.document.title); The above statement which try to to print the document title result in error Error: Permission denied to access property 'document' I need to access the Google auth "code" from the document title. How to solve the permission problem?

firefox OS app,CORS in Firefox os app

左心房为你撑大大i 提交于 2019-12-10 10:50:41
问题 I have been developing web-app(not hosted app) in firefox OS . I want to access the websites xml/JSON data using XMLHttp request. but it gives error as CORS not allowed to access the data . I know about to add 'Access-Control-Allow-Origin' header in website and enabling CORS may cause security issues. But is their any alternate way to access the data feed via XMLHttp request? 回答1: First change your manifest to have the following fields (the type one gets forgotten by people): "type":

getUserMedia for Firefox OS

半腔热情 提交于 2019-12-09 23:02:44
问题 It was said that getUserMedia would land on Firefox OS 1.2. I have read the documentation and tried to look for it in the Google Groups, but I have not found anything related to it. I have developed a web app that works on Firefox Nightly (so, it works in Gecko): But when I try to use it in Firefox OS 1.4, I get a "Permission denied" error: I have tried to add the following permission to the manifest: "permissions":{ "camera":{} } But didn't solve the problem. Is there any other permission

Can I get a live camera image inside my App in Firefox OS?

筅森魡賤 提交于 2019-12-09 22:08:15
问题 So I am having a look into Firefox OS right now. One thing I would like to try is to manipulate the device camera's live feed using canvas et.al. From what I can see in the blog posts (like this one ) and the code in the boilerplate app this is always done using a MozActivity , meaning that the user is leaving the application, takes a picture and passes this picture back to the application, where I could post-process it. But for live manipulation I would need to have a live camera feed inside

ZTE Open userAgent String

痴心易碎 提交于 2019-12-08 11:37:53
问题 could someone plz provide me the User-Agent-String (navigator.userAgent) of the ZTE Open device? I need it to disable memory-hungry features in my app on devices with 256 MB of RAM. There's no way to get information about available RAM at the moment and I can't do those features with less memory consumption. (on 512 MB RAM they will work) By now I have those User-Agent-Strings: ALCATEL One Touch Fire Mozilla/5.0 (Mobile; ALCATELOneTouch4012X; rv:18.1) Gecko/18.1 Firefox/18.1 GeeksPhone Keon