-
Notifications
You must be signed in to change notification settings - Fork 17
Install the app on the device using Firefox Web IDE
jose pita edited this page May 28, 2020
·
3 revisions
- Download Firefox version 49.0.1 https://archive.mozilla.org/pub/firefox/releases/49.0.1/
- Make sure you don’t have any other installations of Firefox or change the name of the file once it’s installed
- Once Firefox is installed
- Disable the internet on your computer
- Open Firefox
- Open the preferences
- go to advanced
- disable the updates
- Turn your internet back on
- Quit Firefox
- Connect your kaios device to your computer
- Open the terminal and run “adb devices. It should show your device on a list, if it doesn’t do these steps
- Run “adb forward tcp:6000 localfilesystem:/data/local/debugger-socket” on the terminal
- Open Firefox, go to tools->web developer->WebIDE
- Click on “Remote Runtime” on the right side bar
- Check that the port is the same as the one you put on the “adb forward” command, should be “localhost:6000” and click OK. Ignore the “the connected runtime” error that shows
- Click on “Open packaged app” on the left side bar
- Select the folder where you have your app installed. Make sure you run
npm i && npm run build
before this step
- If you get a “TypeError: IDB._db is null" error, you need to:
- Quit Firefox first
- Then delete the folder in the path
/Users/YOURUSERNAME/Library/Application Support/Firefox
. - This usually happens when you have more than one Firefox installation.
- If you delete this folder you need to disconnect from the internet again and go to preferences and disable the updates once you open Firefox again
- At this point you should be able to see something like this in the browser This means the process went well and you are now ready to install the app
- To install the app you just need to press play on top-center of the browser This error will appear but ignore it, the app will be installed in a couple of minutes
- To be sure that the app is installed make sure to look at your device, the app should open when it’s installed **BONUS: if you want to inspect the app like you would a website on the browser devtools:
- Quit firefox
- Open firefox
- Click “Remote Runtime”
- Click OK
- Under RUNTIME APPS on the left side bar it should appear “Wikipedia”
- If you click this, a debugging session will start and you have access to everything you would have on a browser debugging session