I'm reading about native messaging in chrome extensions. I want to create an extension that will comunicate with a cli script and have the ability to start and stop it. I want also to integrate a counter badge that will inform me about updates from the cli script. Is this possible or I need to write an electron app to achive this?
Related
I have an Electron Desktop App currently being started via npm run start
I want to turn this into a windows service so that it will start up automatically upon login. Is there any way to do this?
You want to Google "Run and RunOnce Registry Keys."
I am trying to find a way to create a desktop application where I can setup Tasks to run that will turn on my pc and run a c# app / shell script that will send an api request with a video file and a text file.
If you use nodejs, you can execute commands in the terminal with the exec function from the child_process module, then use the schtasks command to schedule tasks.
Commands with nodejs:
https://stackabuse.com/executing-shell-commands-with-node-js/
schtasks command:
https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/schtasks
I am unsure about turn on PC part.
You could write a Windows Service worker that runs in the backend, then interact with it vai a local datasource (like a Database or Text file) from your react native desktop app.
In the .Net world you could also host a HangFire web site or something like it. To expose API endpoints for your application to fire off jobs or series of jobs.
https://www.hangfire.io/
Or:
You should be able to call a PowerShell script.
*** Addison Schmidt answer it likely much more direct. Depending on your needs.
I am working in an established iOS app. I have backfilled the app to use React Native, and so far that part is working fine. The problems I am running into are:
The Xcode build takes a very long time, and any JavaScript errors will cause the initial build to fail
Once the build succeeds and the app is started (on a physical device), the initial launch says it is trying to connect to Metro, but it never actually does. Instead the RN view pops into place without downloading from the server. At this point I cannot refresh the JavaScript from the Metro bundler, it states that there is no app connected. Additionally, if I shake the device and try to select "Debug in Chrome" the screen will go blank and no longer respond.
If I do not try to open the developer menu and select "Debug in Chrome", but instead just force close the app, when I re-launch the app (not rebuild from Xcode) it will connect to Metro and download the JavaScript bundle like normal. At this point I can select "Debug in Chrome" and it will connect and work just fine.
All-in-all, this isn't a huge issue as there is a workaround available to me. However, it doesn't feel right and I would like to figure out what is going on.
My theory is that during the build process, Xcode is bundling the React Native code as if it is trying to do a production build (I have verified the scheme is set to debug) in a debug executable. I have tried detecting __DEV__ and it is true, so I cannot figure out how to get the app to connect to Metro directly after the Xcode build.
Thank you all in advance for any help you can offer.
I'm doing a google app engine related and I want know that if we can do patch release in GAE. I simply want change a js file.
You can deploy your app any time you like. You can either override the existing version, or create a new version of your app. Then you can specify which version is default in App Engine console for your project.
The deployment process only uploads the files that you have changed.
I've used the [yeoman chromeapp generator][1] to scaffold out a Google Chrome Packaged App. The instructions for that generator say running the command grunt debug should launch the packaged app in the Chrome App container, but it doesn't. Instead it opens the packaged app as a regular hosted web app in a tab. Though I am a Grunt noob I'm looking at Gruntfile.js trying to figure out why it doesn't launch the app as a packaged app in the app container, but can't see where the problem is. What's the proper way to get Grunt to launch a Chrome App?
Had the same issue with the Yeoman live-reload—not great for testing actual apps with background js, native permissions, etc.
To manually launch a Chrome app from a folder, I've been using this idiom: ~/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --load-and-launch-app=/path/to/chrome/app/"
There's also this project chrome-app-livereload (blog post) which supposedly swaps out livereload's standard reload with one suitable for inclusion in an app.
You have to go to chrome://extensions, check the box Developer Mode and then click Load Unpacked Extension and point it to your manifest file. This will load your app in a Chrome App Container.