how to open electron application in browser as a local website - electron

I am trying to open an electron app using localhost but not able to do that. The page in opening but not showing anything?
help.
I tried serve option but the folder where index.html is present there no firing javascript not there. It's in other folder. that's starting javascript.

Related

Read local files (.html) I clicked with my electron app?

Let's say I bound .html extension to my application on MS Windows, so that all local html files would launch my electron app.
So how do I access the path of the clicked file to load it on the application?
Thank you for your attention.

How to enable offline PWA app with Electron?

I created a progressive web app and am using electron for app distribution to use some native features.
The PWA app works fine offline in Google Chrome.
The PWA updates work fine in the electron app but starting app offline fails to load anything. Using the inspector, the service workers are running.
No errors in the console and page is blank.
Is there a trick I am missing ?
PS: when loading page online, the network tab shows that all assets except the index page are served by the service worker. Oh, and on Google chrome, there is a (disk cache) for index page. This might be it.
After more testing I realised that this was an issue with my webpack configuration.
I use WorkboxPlugin to build the manifest and it was placed before HtmlWebpackPlugin and needs to come last. This was why the index page was not working: it was not in the manifest.

Open link with other browser from chrome

I have to put a link in my web application for going to other application but that other application was designed to use on IE only.
Is there any way to force my link to open that site in IE when my app was run in chrome.

Open file on none default application (browser)

How do you check what is the default browser to open a html file, and open it with another browser? I'm having security issues on Chrome locally, but luckily the application I'm creating allowed me to run an air application 1st. So I am wondering could there be any work around for me to open the file in other browser other than Chrome?

Do PhoneGap/Cordova Apps run under HTTP?

I'm coming behind another developer who built a PhoneGap/Cordova HTML 5 application, currently only targeting IOS. Admittedly, I have zero experience with Cordova and hybrid mobile apps.
I can open up the XCode IDE and run the application and I can see the web page (application) load up in the iPad emulator, so long as I have his Node.js application running.
I guess I'm confused about the context in which the actual index.html that makes up the HTML 5 application runs. Does it run on the iPad under a mini web server (http://local or http://localhost) or does the index.html run on a file system path (something like file://path-to-file/index.html)?
I've used Icenium (Telerik AppBuilder) and created an empty project for which I copied all the HTML 5 code into and ran it. Upon inspecting/debugging the page in the emulator, I see that the page is being served up with a base URL of http://local.
Lastly, I simply tried opening the index.html by double-clicking it and running it in the browser (file:///...builds/ios/www/index.html), and the application didn't work
In summary, as long as I run the website in an emulator, the application loads and runs file, but it won't run loading it from the file system.
My assumption is the scripts are expecting an http base URL and the file:/// url is throwing it off. Does this sounds like a reasonable explanation?
Do Cordova apps run the HTML 5 apps under HTTP?
Thank you.
they run on a file system path (something like file://path-to-file/index.html)
if you are using something from the phonegap API it won't work on a desktop browser

Resources