Desktop native apps using web technologies - javascript

Are there any framework available that help to create cross platform desktop apps using web technologies ?
Couple of weeks back when I was surfing around tech blogs, I came across with framework doing the same and apparently Slack used it to create there desktop app from it. I am not able to find it again, I am not sure if it was TideSDK.

Got it. it http://electron.atom.io .It used by Microsoft, Facebook, Slack, and Docker for their application. Got the link from http://www.webappers.com/

Related

Why my project doesn't find some images when downloading it as a progressive web app in a mobile phone?

I'm working on a test project to start learning about service workers and progressive web apps.
This project is hosted on github in https://github.com/Pablo-No/Privado1, however, when I download it as a progressive web app in a mobile phone some images aren't loaded correctly and alt text is shown instead, I don't know how to fix it, probably because I don't know how service workers and progresive web apps work, and that's why I'm working on this project.
In my computer it works perfectly, even when the app is downloaded without connection to internet (thanks to the service worker, I think). I've seen some similar issues, but I think they're different, however I may not be correct and I'm sorry if this issue has been answered yet.
I've used Chrome and Chrome mobile with the desktop and the mobile phone (the mobile phone uses android).
Actually I've made it works properly by using code in https://codelabs.developers.google.com/codelabs/your-first-pwapp . I hope this question and answer helps other people if they have the same issue.

Web App runs inside Webview and installed like a native App

I created a Web App(PWA) via React and Bootstrap. It runs perfectly. I planned to create an Android and another iOS Apps that have only one page with a Webview that loads my Web App via URL and ship those Apps to the customer.
My question is that there is a better and standard way to this? I heard about Hybrid Frameworks like IONIC but as I understand, IONIC Apps, Are web Apps that run on device not loaded from a URL, Is that right?
What I want is that my changes in the server affect all users and Apps installed on their devices. Because of that, I created the PWA App, not the Native App. I searched a lot but I can't reach a final decision.
Used to be I was an Android developer and had a lot of problems with shipping the latest version to the customer, Now I want to use Web-based technologies to reach Apps that works like a website.
The issue here is: you will not be able to use the devices resources if you load the PWA in a Webview. For example push notifications will not work. A PWA can be installed onto a phone and windows as an application. This will have push notification on Android and Windows but not on Mac or iOS (Safari is the new IE). You need to go Hybrid or back to Native if you need more.
You are right with IONIC. It is a wrapper for a webapp stored on the device but it allows us to use native features (push works on both Android and iOS). But you still have the distribution issue since you need to publish to the stores every version. Not even mentioning the hoops apple gets you through when you try to publish.
The good thing with IONIC is you have a single source code for multiple platforms and you can choose the library you want to build with. It used to be Angular but now you can choose ReactJS, Vue, Angular or ES. Which makes it way friendlier.
With IONIC you could build the native features and lazy load the rest as dynamic component from a url: stackoverflow question if you do not care about backward compatibility.
I did both PWA and IONIC. Both has their pros and cons.
If I do not care about iOS and Apple I would stay with PWA otherwise IONIC.

using webrtc code on my cordova app

Im trying to use webRTC API such as getUserMedia and RTCPeerConnection for my app which is built with the cordova framework.
I am wondering if its possible for webRTC to work on both Android and iOS since my video chat app is a hybrid app (js and html) which is supposed to manage the entire p2p video chat by itself, unlike pc versions which require a web browser for the webRTC communication.
Yes, It is possible to get them to work. Keep in mind, the architecture of cordova application is reliant on a Web View rendering of your application. That web view will need to provide the WebRTC APIs to consume in JavaScript. This thread suggest the web view in iOS 11 does not support it. In fact, it is pretty new to Safari all together. This documentation says that the latest versions of Android Web Views do have support. WebRTC is a collection of technologies that enables RTC, and there are native libraries for accomplishing this. I have seen a couple of plugins for Cordova that enable access to native code so you are not as reliant on the Web View.
cordova-plugin-iosrtc
phonertc
Good luck!

Make a Secure PhoneGap/Cordova App (Android)

I am developing a new app for android. I tested PhoneGap the last days and I think it is a very good platform to develop an app.
I started developing and now I have some security concerns.
Online
All the JavaScript gets hosted on my server and the app needs them to start.
Offline
I have my JavaScript in the app and it just validates some files before startup.
I want that my app is working online and offline.
Problem
If the files are offline every user (with root) can edit the code. The user can remove for example the In-App Purchase and the file validation for the offline mode.
I searched through the internet and I need so say that I didn't found a good answer how to secure my app.
I hope here is somebody who can give me tips or ideas to make my app working online and offline with beeing secure. Thanks!
Probably there is no bulletproof solution to make hybrid apps secure, however you could obfuscate your code using tools like https://github.com/mishoo/UglifyJS. Although not safe from reverse engineering, uglification willl make more difficulty to modify the code.

Integrate web with desktop application

I have to integrate a single page javascript web application which I wrote with a bunch of desktop applications which I don't control, but I'm expected to provide integration instructions.
The initiator of communication is a desktop application. Let say, users presses F5 and browser opens with certain url. A simple way must be provided for the user to return to
the desktop application.
The solution does not have to be browser and OS agnostic. It is OK if it works only for firefox or IE on windows (XP and later).
I intended to create XUL plugin which opens a socket server and launches web application with the received url. For the way back, I would provide a simple button to close the browser window.
Is there a better way to do the integration?
If I got a good understanding of your question, you were asking if there are "other way/better way" of integrating desktop thingy and web thingy?
Desktop and Web are totally two different domains, the best way you do an integration is using interfaces, tho, there are libraries scattered on the net that allows you to utilize each on either web or desktop application.
There is also a vague area about the question detail, you said "I wrote with a bunch of desktop applications which I don't control" does that mean there are multiple systems not specific to one language? eg. apps in C#, C++, PHP etc...

Categories