firefox-os

How to share link on Facebook from own application (KaiOS feature phone)

和自甴很熟 提交于 2020-05-17 07:28:25
问题 I am trying to share a link to Facebook from own application. Below are the steps/code snippet used: On click of some media item, on click of Options menu user can select Facebook. var activity = new MozActivity({ name: "share", data: { type: "url", url: "http://google.com/" } }); activity.onsuccess = function() { setTimeout(function() { window.focus(); }, 500); }; activity.onerror = function() { console.log("The activity encounter en error: " + this.error); }; Here, it's going in onerror() ,

Firefox OS Certified apps

↘锁芯ラ 提交于 2020-02-25 05:57:30
问题 I have downloaded and installed FIrefox OS Simulator for testing and developing. I want to test some functionalities that are allowed only on certified applications, such as SMS and phone calling, as described here. What should I include in my manifest (.webapp file) in order to access this functionality in the simulator? Thanks, Tamas Ionut 回答1: This is very manual, but I think it'll is cool to understand how stuff work under the hood (and it's the only way I know it'll always work): Be sure

Firefox OS Certified apps

生来就可爱ヽ(ⅴ<●) 提交于 2020-02-25 05:56:06
问题 I have downloaded and installed FIrefox OS Simulator for testing and developing. I want to test some functionalities that are allowed only on certified applications, such as SMS and phone calling, as described here. What should I include in my manifest (.webapp file) in order to access this functionality in the simulator? Thanks, Tamas Ionut 回答1: This is very manual, but I think it'll is cool to understand how stuff work under the hood (and it's the only way I know it'll always work): Be sure

Is it possible to do mash-ups in FirefoxOS?

孤者浪人 提交于 2020-01-24 15:28:49
问题 I have just started doing research, but I assume that other people might have the same question: Is it possible to read data from different sources for a FirefoxOS application, such as reading from RSS feeds from different domains? Are you constrained by same-origin policy or is there a way to bypass it? 回答1: Yes you can! If you create a standard web app, just build a web app like you normally would outside of Firefox OS. If you create a packaged app, include a request for the network-http

Is it possible to do mash-ups in FirefoxOS?

为君一笑 提交于 2020-01-24 15:27:32
问题 I have just started doing research, but I assume that other people might have the same question: Is it possible to read data from different sources for a FirefoxOS application, such as reading from RSS feeds from different domains? Are you constrained by same-origin policy or is there a way to bypass it? 回答1: Yes you can! If you create a standard web app, just build a web app like you normally would outside of Firefox OS. If you create a packaged app, include a request for the network-http

File Picker on Firefox OS

笑着哭i 提交于 2020-01-24 14:04:48
问题 There is a library for create a simple file picker that not use an app on the phone? For example if i want get a file like doc or txt it's impossible use an app with the MozActivity so it's needed a custom way. For example in my app https://github.com/Mte90/RingTone-Picker-for-FirefoxOS i have created a list that filter the file extension. I think that a solution like a mini file manager it's better. Many people ask me a file picker but i have no idea for a simple solution for all the

Use Firefox OS as web server

拜拜、爱过 提交于 2019-12-25 14:00:13
问题 For an art project, I'd like to have multiple distributed devices that can output sound. Firefox OS devices seem optimal. They bring the necessary hardware and I know HTML and JS very well. But I also need a control web server. From my understanding, a Firefox OS device can act as an WiFi access point ("Share Internet"). However, it cannot act as a small web server for other devices that join the network – without any internet connection. The APIs for native apps seem just not to be powerful

Firefox OS App (timer) Background Execution

青春壹個敷衍的年華 提交于 2019-12-25 09:32:16
问题 I'm developing a Pomodoro Timer app for Firefox OS and I'm having a problem with the execution of it: Once the timer is running the execution is suspended every time the phone goes in low power mode (which is quite typical in my scenario, for the timer runs for 25mins) and is resumed only when the screen is turned on again . I searched for a way to prevent this, and according to Mozilla docs there are two APIs (Power Management and Idle) by which you could either: Prevent the screen from

Firefox OS 1.3 simulator doesn't work.(runs but shows a black screen)

99封情书 提交于 2019-12-25 03:55:15
问题 I am learning app development for firefox os.I installed a simulator for version 1.3 at my work place and it was working fine.I could write simple web app and run on the simulator.But when i installed the emulator on my home pc It was installed successfully but then was showing just a black screen.I am sure i have installed the correct version.I am using firefox 30.The simulator does show up in the app manager but when i start ,it just show a black screen.I don't understand why this is

Icon not displayed on Firefox OS Simulator

纵然是瞬间 提交于 2019-12-24 20:25:53
问题 I just started developing applications for firefox OS. I done a sample application and it is working perfectly. My issue is in my simulator my application Icon is not displayed. It uses the default icon. I added the below code in my manifest file: "icons": { "128": "Feed.png" } Added a 128 x 128 image named Frrd.png to my directory. But it is not working for me, what can be the issue ? 回答1: First Answer: Finally I got it. For Firefox OS the icon size should be of size 30 X 30 or 60 X 60 . For