Downloading in background. Nativescript-Angular - javascript

I have already asked similar question, but, as I understood, it was too complicated. So, I made a simple version. I am developing a multi-platform app using NativeScript and Angular and have to download a large amount of data from the server and continue doing it in the background even when the user hides my app (sample: when you install a app from Play Market, you can switch to another app and loading continues). How can I do this?

Related

Storing video clips for react/phonegap app

So I have an idea for an app that'll include numerous short video clips. 1st question, is it possible to publish a React/NodeJs/MongoDb application on the android app store using PhoneGap/Cordova? 2nd question, assuming that the first question is possible, how and where would I store/call these video clips for the app?
I've never developed on this scale, any and every tip is appreciated!
Thank you.
I have worked on an application where i had to store small intro videos and pictures of a product, here is what i did and what you can do as well (of course you can choose other technology stacks)
What i did was use native Android Development(Java) for the android app and use PHP(Lumen) for backend where i store my videos on Cloud Storage on GCP.
You can build & publish your android app with PhoneGap(or Cordova choose which ever you are familiar with) and send the videos to your server for storage, your server can be built with NodeJS and MongoDB.
But if you haven't yet checked out Firebase i highly recommend it since it will remove many of the backend work(like uploading a video etc) and make development faster

What do I need to make a small app running offline with a html/css ui?

Noob question here:
I wanna build a small app that's supposed to run offline on a desktop computer. It does not have much data to save, so i can either use a file or some form of a db, but here lies my question:
What language/tech can I use for handling and saving the data, that does not have to be connected to the internet?
I'm thankful for any tips!
Try out the electron: https://electronjs.org/
You can create cross platform desktop apps with JavaScript, HTML, and CSS with electron.

native app development using cordova and ionic

How to keep the process or service always running even after the app is killed by the user, similar like to the stopwatch which will be running even after the app is killed by the user by swiping the in the recent tabs. I know how to keep the service or the process at the background but i don't know how to keep it alive even after it is been .With the help of the link the running the app in background is possible.

Node.js app into an iOS app?

I have a Node.Js app running on a publicly accessible server.
I want to make it possible for users to access it as a native iOS app.
Is there a simple way of simply making an iOS app and having it show my Node.Js app running from the server? Or it's more complicated than that?
I looked into PhoneGap but maybe some other recommendations also?
Thanks!
PS I know the question is broad but that's why I'm asking – to focus my question and to know what to do next.
Node.js - this is a server side application. So you need to build client application which can communicate with your node.js server by Rest api or so...
As you mentioned you can build hybrid html5/js app with PhoneGap, Cordova, Ionic "wrappers/libraries" which will pack it into native iOS/Android/... application and that app can talk to your node.js server and transfer data you need.
Also, as Daniel Larsson mentioned for some specific pages you can use webview to display page straight from the web, but webview can be a part of your application but not an entire application, because Apple will reject it during review process.
If you want to port your existing web-app over to being a native app on the app store, I can positively recommend PhoneGap having developed multiple apps with it after completing the same research you are doing now.
As NYS said, you'll need to package all your web-app design (HTML/CSS+images/JS) inside the PhoneGap app, any other way simply wouldn't be responsive enough.
As for what to do next, I would dive straight into creating a PhoneGap application and see how your app runs inside the Cordova wrapper out of the box. The issues I faced were with scrolling on divs holding content, and non-responsive click events, both were easily solved with javascript libraries.
Cheers Chris!
You may use Socket.io for native option.
http://socket.io/blog/socket-io-on-ios/
https://github.com/socketio/socket.io-client-swift/
https://github.com/pkyeck/socket.IO-objc/
https://github.com/square/SocketRocket/

Javascript - Interacting with the OS

I'm implementing a specialized cloud storage solution. As part of the deal, I supply a client app similar to "Google Drive"/Dropbox. This app is quite good because it not only keeps everything synced but also, when uploading a file, it can significantly increase upload speed.
My problem here is that a lot of times, the users HAVE the client app installed, but forget to use it, and upload new files via browser. So I was wondering if there's a way to make the browser report back to my app if my client app is installed.
I know that I can't run a app via javascript, but I was thinking can I ask if "there is someone who knows how to read the extension .XPTO" using javascript? because I can bind the extension to my app, and if there's no responder, I could proceed with regular browser upload...

Categories