Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want my app to check in background if there is a new version of the app on MY server (not play store servers). How is it possible?
I already thought maybe i could send a background request with asynctask to my server and evaluate it with some kind of server logics (javascript?)?
Make an HTTP-Request to your server. The script at the URL it's calling should simply return the number of the new build you made. In the App you will now be able to check the answer, wich contains the build number and compare it to its own build number.
Just have an simple get api for knowing the current version of your app on the server.
then find the version of your app using BuildConfig.VERSION_CODE;
if the version code in your server is greater than this, then there is an update available
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 12 months ago.
Improve this question
I am writing an android app using Java and for the back-end I chose socket.io in node js.
I just want to ask what happens if I socket.io instead of rest-api?
Using socket.io as the main communication system is not a good choice because the communication system is always open.
now imagine 1000 people want a data trough sockets, it will slowdown your server and sometimes cause server crashes.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
search functiondisplays the searchimplements the search
React is completely back-end agnostic. This means you would have to implement the connection yourself.
The regular way is, you setup MongoDB and a Node.js server (or whatever back-end you like) then you connect the Node.js server to MongoDB (via MongoDBs JavaScript SDK) and your React client, which runs in the browser to your Node.js server (via HTTP, express framework could help here).
Browser -> Node.js -> MongoDB.
But MongoDB also has a REST interface you could use directly via the browser, like it's mentioned in the following answer:
https://stackoverflow.com/a/16277603/1016383
Would probably be okay for small proof of concepts or experiements,.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I'm working on a chrome extension and I need to get a schedule data from outside of the extension to let the admin broadcast the schedule to the extension users. I wanted to use hapi.js but I can't afford to buy any private server. I did find free website hosting. I thought I would do a minimal website with just a login system and some pages containing the data I would want and make some get request on the extension and extract the schedule on the extension.
Is it okay like a replacement plane for the API?
For almost the same purpose I was using WordPress website with json api plugin. (https://wordpress.org/plugins/json-api/) It is super easy to install and later you can simply run fetch requests inside of your application or extension.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I'm starting a project that will use a search bar to hit a web api and return the results. There will be no writing to the web api.
My biggest struggle when creating a new project is how it should be laid out. I never know when i should create a DAO, do it all via javascript, put it in a controller, etc.
For developing something like a search engine or any web application. You would need following:
A frontend, which is your application's GUI in browser of user or mobile application.
A backend logic, this could be in any server side scripting language, in your case you would be writing server code in .net
Now, your backend must expose a search api, Eg. If I send a HTTP GET with a variable q, it should return search results matching the query.
Your frontend must have input-box and a button for allowing users to send this request.
This answer isn't complete, just a vague overview of how this problem can be approached, also this isn't the only solution.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Is it possible to implement webRTC at server side? ie., I want my browser to connect to a http server(tomcat which runs a java based app to stream a video) using webRTC protocol and get the streem from the server?
I think compiling webRTC api and access it through JNI will help. Any other easy directions to do this?
There is now a server-side implementation of WebRTC in Asterisk that should enable that: https://wiki.asterisk.org/wiki/display/AST/Asterisk+WebRTC+Support
I haven't yet looked into it that much so I can't say for sure that it does what you want.
Take a look at Lynckia's Licode Project. It is however, Node.js serverside.