I am trying to develop an Electron app in Windows 10 using boilerplate code like
https://github.com/electron-react-boilerplate/electron-react-boilerplate
https://github.com/electron-userland/electron-webpack
https://github.com/SimulatedGREG/electron-vue
https://github.com/electron-userland/electron-forge
After installing all the required modules and running the app in the dev mode using npm scripts, the electron app only runs in the background and doesn't appear.
This is a screenshot of the task manger which indicates that electron is running in the background:
but when I run the electron quick start app, it works.
Does anyone know how to solve this problem so that I can use any boilerplate
to use frameworks like React or Vue
Related
I am using the Electron framework to build an app on windows. I use electron-forge to make the setup.exe.
My problem is the following at the end of the install, the app is automatically started. I would like to prevent this behavior, but I can not find a solution anywhere.
To clarify, I am not talking about the opening of the app during the install that can be prevented by
if (require('electron-squirrel-startup')) {
app.quit();
}
I am developing on macOS.
When running the app on the command line with
npx electron .
If I ues applescript to pass some system events such as "set the window position". The electron app won't handle it.
Note that, if I bundle the app with electron/forge, then the produced applications works fine.
I want to be able to test an app created with react-native init through the expo app downloaded from the app store. How can I do this?
I'm trying to use pure react native (no expo at all) and want to test my code on my iOS device. A while ago, I was able to do this through the expo app simply by running npm start. However, now when I run npm start I only see Running Metro Bundler on port 8081..
You cannot run a project created with react-native init with the Expo app. However, you can use https://snack.expo.io/ to test plain React Native code in either the browser emulator or on your device (which will open through the Expo app) by pointing your iOS camera app at the QR code they display for you. The caveat to this is that you cannot use native modules within a Snack.
Depending on the size of your app, you can port your code over from react-native init into a freshly created expo project. I have managed to do this on several projects in the past with great success. The process can be tedious depending on the age of your dependencies however.
I'm building an iOS application using Xcode/Swift, and I have a few less-than-technical group members who don't really know how to build Xcode projects, but are interested in seeing/testing the progress of the application. One group member pointed out that they could test the app using Ionic/Ionic View. However, to my understanding, Ionic works by building an application in the specific Ionic framework, and then Ionic translates the project into an Xcode/Swift project (.xcodeproj) or an Android project. Is there a way to do the reverse conversion––is there a way to convert my Xcode project so that it will work on Ionic, or specifically Ionic View?
Ionic is tool like cordova created to develop hybrid apps (from HTML+JS+CSS --> to Native iOS/Android/WinPhone/BlackBerry). The UI is running in native webView, and using some native functionalities by plugins but it is not created to make Ionic/Cordova app from native.
If you want to share your app to tests, use Apple TestFlight
'Ionic View' is a very good advice and the one I would suggest in your case as well.
You don't have to do anything in your code really to use it, just create an ionic account and in your terminal, change into your ionic project directory and then type:
$> ionic upload
You will be asked for the usernmame and password of the account you just created, the application will be uploaded and you will get a unique app ID. You can then share that ID with anyone who you want to test your app, as long as they have the Ionic View app installed on the their iOS or Android devices.
Also do make sure you have updated your global ionic and cordova packages to the latest version before you upload:
$> sudo npm uninstall -g ionic && sudo npm install ionic
Now, as 3squad mentioned, many of they Ionic Native plugins are not supported so don't expect everything to work, but it's a good start to show most of your app and design running.
Here's a list of currently supported plugins.
Please do keep in mind that the performance using Ionic View will be far worse than if you actually build, release and give your users and actual production .apk or .ipa file to install. This latter approach would also showcase the full, final performance and functionality resulting from your code, but it may be more cumbersome.
Here's how to release a production version of your app.
react native can't run iOS,I have to configure the environment in accordance with the official website of the method, but has been unable to run
first
Run time results
Try this:
Shut the Terminal spawned by React Native.
Shut down XCode completely
Re-open everything and re-run.
Try:
Close the terminal packer
Stop Xcode from debugging
Close the Google Chrome tab that has been spawned for debugging purposes
Restart Xcode debugging using the Play button
OR
By navigating to your React Native project folder, run:
npm start