Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repackaging this application for PWA/Native #10

Open
BradKML opened this issue May 9, 2021 · 3 comments
Open

Repackaging this application for PWA/Native #10

BradKML opened this issue May 9, 2021 · 3 comments

Comments

@BradKML
Copy link

BradKML commented May 9, 2021

Google has made this feauter in https://developer.chrome.com/blog/new-in-chrome-73/

Progressive Web Apps provide an installable, app-like experience, built and delivered directly via the web. In Chrome 73, we've added support for macOS, bringing support for Progressive Web Apps to all desktop platforms - Mac, Windows, Chrome OS and Linux, as well as mobile, simplifying web app development.

A Progressive Web App is fast, and reliably so; always loading and performing at the same speed, regardless of network connection. They provide rich, engaging experiences via modern web features that take full advantage of the device capabilities.

@catamphetamine
Copy link
Owner

catamphetamine commented May 9, 2021

Hmmm, so we don't need to learn Electron anymore?
I was planning on making an Electron version of this app in order to circumvent the limitation of having to go through a proxy server (that is not compatible with Google ReCaptcha by the way).
I have a "universal app" feature planned for after I finish message posting API.
That could come somewhere late summer I guess.
Thx for the tip.

@BradKML
Copy link
Author

BradKML commented May 9, 2021

In some sense, yes, Electron is obsolete, however since it is a PWA it does not package every asset in one pre-downloaded application (which is why it is good for media apps but not JS-based utilities).

@catamphetamine
Copy link
Owner

Actually, looks like "Progressive Web Applications" don't ignore the CORS stuff so I guess it's not an option then.

Looks like Electron does have an option to ignore CORS:
electron/electron#23664

Something like:

app.commandLine.appendSwitch('disable-features', 'OutOfBlinkCors');

or:

const mainWindow = new BrowserWindow({
  webPreferences: {
    webSecurity: false
  }
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants