Every change waits for a cloud build and a reinstall.
- Edit
- Cloud build
- Download
- Reinstall
- Test
The html2app developer app is a free phone app that loads the dev server running on your computer. Save a file, and the change shows up on your device through live reload. Build your own copy on html2app.dev and it includes the plugins you select.
Testing a native app usually means a new cloud build, a download and a reinstall after each edit. The developer app skips that loop. The phone loads your files straight from your computer.
Every change waits for a cloud build and a reinstall.
Every save reloads the page on your phone.
Plugin calls run on your phone, so you see the real result on real hardware.
Live reload sends each saved change to the device. You stay in your editor the whole time.
Remote logs send console output from the phone to your terminal, which helps when a plugin call fails.
Start a local server on your computer, then connect the developer app on your phone.
If index.html sits at the top level of the folder, run this command.
$ npx -y five-server@latest --host=0.0.0.0 --remoteLogs=true
If index.html lives inside a folder such as www, serve that folder instead.
$ npx -y five-server@latest --root=www --host=0.0.0.0 --remoteLogs=true
The terminal prints a local URL and a network URL, for example
http://192.168.1.20:5500. Use the network URL. The port is not always 5500.
Open the developer app on your phone, enter the address without http://, for example
192.168.1.20:5500, and tap Connect. The app adds the protocol for you.
-yfive-server@latest--root=wwwindex.html is not at the top level.--host=0.0.0.0--remoteLogs=truePress Ctrl+C in the terminal to stop the server.
The developer app on GitHub is the free shell. Build your own copy on html2app.dev and it includes only the plugins you select. Your phone tests then match the app you ship.
Zip your project folder, or on the developer-app repository click Code, then Download ZIP.
Upload the ZIP on html2app.dev. Sign in to the dashboard if prompted.
On the Plugins page, click Add New Plugin, select the plugins you need and configure them.
Start the build, then follow the instructions on the site to install the app on your phone.
AdMob, Vibration
Camera is Android only for now. This picker only demonstrates the choice. Pick your real plugins on the Plugins page on html2app.dev.
import { Vibration } from '@yandeu/js-bridge/lib/plugins/vibration.js'
// Buzz once (500ms)
Vibration.vibrate()
// Custom pattern: [wait, buzz, wait, buzz]
await Vibration.vibrateWithPattern([0, 500, 100, 500])
Save the file, and the developer app reloads it on your phone. Plugin calls only work when the plugin is in your build.
Both features run on the server you started on your computer.
When you save a file, the page on your phone reloads with the new code.
The page reloads from scratch, so temporary state in your app resets.
Add --remoteLogs=true to your command. Console output from the phone prints in your terminal while you test plugin calls.
Check that the phone and the computer share the same Wi-Fi, since guest networks often block this. Allow Node.js through your firewall on private networks. Use the network URL from the terminal, and confirm the port matches the one printed there.
--host=0.0.0.0 safe?It makes your project files reachable by every device on the same network. Use it only on networks you trust, and stop the server when you finish.
No. The developer app connects straight to your local server over your local network. No source code or credentials are saved or sent to cloud servers.
Up to 10 recent addresses, kept in the app's local storage. Use Clear All in the app to remove them.
Files whose names start with a dot, such as .env, are not served by default.
Pick your plugins on html2app.dev, then test them on your phone with live reload and remote logs.