eclipsesource / tabris-js

Create native mobile apps in JavaScript or TypeScript.
https://tabrisjs.com
BSD 3-Clause "New" or "Revised" License
1.4k stars 170 forks source link

Show progress/info screen during code sideloading #1697

Open tbuschto opened 6 years ago

tbuschto commented 6 years ago

Feedback from several sources complained about perceived hangups during code sideloading and unsatisfying behavior with connection issues.

I assume this can only be implemented natively.

tbuschto commented 6 years ago

Related: #1695

tbuschto commented 5 years ago

One possible mitigation would be to use the CLI to display some kind of progress indicator. The CLI (when used for sideloading) is aware of the beginning of a load operation (by delivering boot.min.js) and the approximate end of it, due to the device connecting via WebSocket.

However this does not cover the common case that there is no connection possible to begin with. This can only by solved by the native clients. While the developer app does a pre check if a package.json is found, this is not in place if the developer console is used to enter the url.

So I propose to align the sideloading process of both clients to this:

When the developer console is enabled (i.e. we are the developer app or a debug enabled app), an application is already loaded (e.g. the developer app) and a REMOTE URL is to be loaded either by API or by the developer console, the native client performs the following steps:

mpost commented 4 years ago

With the addition of the new developer tools ui and accompanying tabris.devtools object, the is has been resolved.