Firefox OS: Hot to test your hosted app with firefox OS desktop client and marionett - firefox-os

I want to run UI tests on my firefox os application. I would like to use marionett for this, so I downloaded the B2G desktop client. It works fine, but I can not figure out, how could I add my hosted app to the desktop client to be able to test it with marionett.
Could you help me?
Thanks.

Related

How to create a browser instance (pupeeteer) with firebase and use it in my app (node.js)?

I created a firebase project. This communicates with a mobile application (node.js). As part of this project I want to use pupeeteer.
I have no problem launching functions using pupeeteer in firebase.
The problem is that I want to make the user perform actions. So I have to display the web page (pupeeteer) in the application via a browser generated by the server (with a firebase function?)?
However I have no idea how to launch a browser instance in the background and close it at the end of processing?
Can you help me ? Is this the right solution?
I want to use this :
This library does 2 things:
Download the chromium binaries and launch a Chromium process.
Connect to this process with Websocket and send json commands to control the browser.
Due to limitations on mobile platforms (iOS and Android), it is not possible to launch an external Chromium process on iOS and Android. So, step 1) does not work on mobile.
You can still use puppeteer-dart on Flutter either with:
Flutter on Desktop (macOS, windows, Linux)
Flutter on mobile BUT with the actual Chrome instance running on a server and accessed from the mobile app using puppeteer.connect
The pub.dev website reports that this library works with Android and iOS. The supported platform list is detected automatically and can't be manually modified to express the current limitations

react native windows app not connecting to localhost

I have been working on react-native for windows app the thing is I created a localhost in node.js using express and made api calls from the windows app both the server and app were working fine on my device even after when i created appx bundle file and installed it on my computer then i shared the appx bundle file and my localserver file with my friend and it was causing problem there. Localhost was working fine i could make requests via postman but was not able to do so via the app it gives
Error : Network Error
. I am looking for some help if anyone have any idea about what could be going on.
Note that everything works fine on my development device

Create Node Js Executable App for Mac

I have a MEAN stack application running on my local laptop. I want to make an executable out of it which I can give to my other teammates so that they can install it on their laptop. My teammates will have mongoDB installed since my app is using mongodb. How can I create such an app. It would be great if while installing the app, it also installs node, express npm on one's laptop.
Please help!
Thanks!
One way to do it would be to use Electron. You don't need to use BrowserWindow if you don't need a GUI but Electron gives you nice tools to package and install your app on Mac, Windows and Linux.
Using Electron you could even make the frontend side of your app appear inside of a native window so that no web browser would be needed to access your application.
See:
http://electron.atom.io/docs/tutorial/application-distribution/
Other options:
https://jaredallard.me/nexe/
http://enclosejs.com/

uwp nodejs local site

I build a uwp App with a webview. It loads a nodejs local site at http://127.0.01:81. When I try to load 127.0.01:81 from my uwp App, I have a blank page. When I try to load http://127.0.01:81 directly from chrome, or edge on my w10 pro tablet, it's working.
If I try the uwp App on the pc, where I build the App, it's ok.
Nodejs is correctly install on my w10 pro tablet, but there is something blocked when I try to use it from the uwp App. I try to give all the permissions to the nodejs directory, stop windows firewall, reinstall the tablet but nothing change.
Hello I have found the solution : I have activated the 'Allow local network loopback' on my w10 tab pro with 'Loopback Exemption Manager' downloaded on loopback.codeplex.com (check the app name)
On the pc where I build the app in visual studio in the propertie of the project in the 'Debug' section, the option 'Allow local network loopback' is checked. It's why it works on the pc where I build the UWP App...
you should not use the 127.0.0.1, it only will be used on the same device. in you local, you should use like 192.168....... the local ip of the device you are running on.

Autorun desktop app and check if it is running from a Windows 8 App

I´m developing a Windows 8 App, and it needs a desktop app running on background to work properly.
So i have two questions:
1.- The OS is a Windows 8.1 Industry Embedded. I need to autorun the desktop app and my Windows 8 app at startup.
Here explains how to do so with a Windows 8 App, but not with a desktop app, so i´m using this other solution to add the application to the Windows Startup folder, but i´m not sure if this is the best way.
2.- Then, when my app starts, i should check if the other app is running or not to work in one way or another. How can i check that? I´m developing with HTML and Javascript.
Thanks!
Yes that is the 'proper' solution to starting a desktop app on startup. Otherwise you can look at creating a windows service that manages the app lifecycle.
By design, winRT apps are not supposed to talk to desktop applications, but if you are sideloading the winRT app (i.e., not through the Windows Store), you could run a local server with your desktop app, and then enable local loopback with localhost in your winRT app and communicate that way.

Resources