Updating Electron app - electron

The Electron framework from GitHub has a feature that lets you automatically update your app by using some server utility called Squirrel. What I am wondering is whether an Electron app can simply just update itself without depending on any server utility. Since an Electron app is basically a web-based app using HTML and Javascript, couldn't you just create an "empty" app that has no UI or code other than some bootup Javascript code that downloads the entire UI and other scripts to run the app?

Related

Electron framework - From where electron downloads the new update

I am new to the electron framework.
I have a query where I need to deploy the new version for my app for mac and window?
Do I need to publish my application on some app stores?
I am working on a ToDo app, I have created .exe for the application, Now I want to make some changes to the app and let the app update automatically, for this where I need to upload my application?

React Native WebView offline-first or local content

I am building React Native application with integrated AppCenter SDKs (analytics, crash reporting, CodePush for in-app updates). This application is only a 'wrapper' for our online web presentation. The requirement is to make it offline-first with possibility to update the wrapper or web presentation.
My idea was to attach web presentation files to React Native project and WebView with local HTML source. BUT - it works only in emulator. React Native packager (or bundler) is possible to render full HTML file with all it's internal dependencies (JS, fonts, CSS, other assets). Like this:
import htmlSource from './presentation/index.html'
<WebView
source={htmlSource}
style={styles.webview}
/>
This works fine on emulator, but when I create a production build, JS bundle does not contain any HTML dependencies so presentation is only raw HTML without styles and any other assets. So I am not able to render full presentation with WebView. Creating CodePush release (for in-app update) is the same - without assets.
Do you have any ideas how to make this working? I need to be able to render presentation when device is offline but when is connected, be able to update it.
We do not want to make a full deploy process to App Store, because of its long review/verify process.
Why it works on emulator but in production build it does not work? Is it possible to make a bundle different way to attach all HTMl file dependencies? Or is it possible to offline-cache the WebView content if I point to URL address?
Thanks for any ideas.
react-native bundle --entry-file index.ios.js --platform ios --dev false --bundle-output release_ios/index.ios.jsbundle --assets-dest release_ios/
then drag your local css、assets... to assets

Does Cordova App with external JS file violate App Store Guidelines?

I am developing a cordova hybrid app for iOS. The app contain basic JS file. When the app loads, it will connect to the server and grab the latest main JS file and cache store into the user phone. The cached JS will always be used until new update of JS file available, then the app will automatically re-download the new JS file and load with it. Therefore, when user first install & run the app, they will first see the loading screen saying something like "Please wait, downloading update now".
So, does this kind of method violate Apple App store guidelines?

Access a Qlikview dashboard on an iOS app

I have a Qlikview dashboard that I need to present and I've created a site that loads the Qlikview server onto the browser and runs it from there.
I now need to create an iOS app that does this. But the requirement is that the dashboard shouldn't open on the browser. The server should be loaded and run from the app itself. Is there any way to do this?
PS, I'm completely new to iOS App development and any help will be appreciated.
Yes. While saving it as a shortcut and opening it in the browser would be simple, using Apache Cordova is the best way to develop a smartphone app with HTML5/CSS/JavaScript. From the website:
When using the Cordova APIs, an app can be built without any native
code (Java, Objective-C, etc) from the app developer. Instead, web
technologies are used, and they are hosted in the app itself locally
(generally not on a remote http server).
And to make things better, it's open source.

Porting native apps to Phonegap?

I have a native app for iOS and am being tasked to create a new app that includes portions/sections of that original native app within this new project. The caveat being that the app I am now tasked to develop must be done with Phonegap/Cordova.
My question is, what options do I have for utilizing the native code within the Phonegap project, or does the same functionality all need to be rewritten in HTML5/JS? I'm new to Phonegap so I don't fully know it's capabilities.
Generally phonegap apps are coded in javascript, css, html and where ever they need access to the native layer, they use phonegap plugins to access the native functionality. If you want use your existing code for integration into a phonegap app, you can do it by wrapping your code using phonegap plugin architecture and create plugins for the functionality from the code that you wish to reuse. Then you call those plugins where ever required in your application.
The below link is good starting point for creating plugins.
http://docs.phonegap.com/en/3.4.0/guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide

Resources