setting up a webserver on Monodroid - webserver

I have to show few offline pages done in MVC. I have the data in SiqoDB on phone. The problem is i need some webserver that will host these offline MVC pages on the phone and fetch data from the db. Any idea on how to do this?

Are you looking for application or for a library to build the server with Xamarin.Android? For a library I can offer our SecureBlackbox, namely its HTTPBlackbox package that contains components for building an HTTP/HTTPS server. These components work on Xamarin.Android .

Related

Connect with Backend Server

I'm new in developing Xamarin app and I'm not a backend developer. I use VS 2017 to develop Mobile App.
Can anyone please give me links how to create a REST API (Json type) to connect with Backend server? I need to retrieve data from my company server.
The app will take many parameters as database name, table name and return a dataset of all the records. I know that the RESTful can be build for specific table but how can I code the RESTful API can take parameters as databases and tables bases on the input on my Xamarin app.
Please help. and how can I display the record in list view on Xamarin app as I did for my Android app. Thank you.
If you have other way to connect with .NET core server.Please tell me solution.
Use Refit, install with nuget. They have very detailed docs and how to use:
https://github.com/reactiveui/refit
You could use Restsharp for your problem: http://restsharp.org/. It's a easy to use and quite popular REST/HTTP Client Libary.

How to host audio files for a web application

I'm planning to make web application which allows users to upload music/audio files and host them etc, i'm wondering what the best method would be to go about this, i have used cloudinary in previous projects for image hosting but nothing for audio.
What do companies like Soundcloud use if not there own service which i am assuming is the case.
What would you recommend? It will be vital when it comes to building a scalable and reliable service so I don't want to go into this project uneducated.
ps. I will be using meteor and mongodb to build the application.
I'd recommend getting started with edgee:slingshot in your app. It's much lighter on your Meteor server since uploads and downloads go straight to the storage system. There you have several choices including S3, Google Cloud Storage, and Rackspace Cloud. You could also use CollectionFS but slingshot seems architecturally better suited to this class of problem.

fetching a file from a url for mobile app: How to manage server side running Joomla?

Im new to website development and design so apologize in advance if the question is redundant.
I have a program where a client, using a URL string fetches a XML file from a webserver. This would be no problem right if it were a simple URL with no security or no CMS (like Joomla) involved: Just put the exact URL string and the client gets the file from the web server, done.
But, how would the process work if the URL is on my site hosted on GoDaddy and using a Joomla CMS?
Im trying to understand how the same process of fetching a file works on a hosted server using a CMS. Since I just made the transition from my site being on my school's servers to having a Joomla website Im hosting on goDaddy.
I mean where would I put the file if I also want the file to be accessible only if the client authenticates itself first. Just to be on the safe side. I mean is this how normally things work in mobile apps? I have a client program thats a iPhone app and within the app I have a XML file which is used as a data source for my UITavleView, but I want to check some URL to see if an updated version of the XML file exists. My app side programming is mostly done, now Im trying to learn the server side things I need to do to make this process happen with Joomla and my own hosted site
I donot understand how would the process work in that case. I mean, what are the things I would need to do on the server side to and the client side to make this possible?
Please help me understand or if you could point me to some links where these steps are illustrated...or if you could give me some Google key words I can search for to learn about this process.
thanks a lot
The fact that you have a CMS does not generally change how you access a file within the file structure of your domain unless the CMS protects certain directories. In this case, Joomla does not so you can directly access any file you wish. Depending on the sensitivity of the information you are trying to retrieve, you can protect the directory through your domain management panel. If it's not particularly sensitive, the authentication can be done by the app since the URL you are accessing can be easily hidden from the user.
It seems like that would be the simplest solution since the app will have access to user information by nature of where it resides.

How do I sync an offline web app (HTML+JS+CSS) with my server?

Do I need to implement my own sync methods in order to make an offline web app (html+css+js) stay up to date with changes made on the server (and viceversa)? I'm using MySQL on the server side.
I read Two-way sync between iPhone application and web application with some pointers but I think they're talking about native applications when they mention CFUUIDCreate and I wander if this is possible for the Web.
Does someone have some code to share or maybe can point me in the right direction?
Thank you!
P.S.: I hope my english is not that rusty ;)
To store static contents on the client-side, as Jethro Larson said, the Application Cache Manifest is the way to go to cache the static contents of your website (HTML, CSS, JS and images).
To handle dynamically generated contents offline, you can use javascript templates. There are several solutions for this.
To sync the two databases, there is a project called persistence.js (persistencejs.org) which is a javascript library which offers a unique API to work with WebSQL databases, Local Storage, etc. They have a plugin for this library called persistence.sync (persistencejs.org/plugin/sync) which syncs the remote database with the server's one. It consists of POST and GET requests to a specific url that you can configure (for example yourapp.dev/sync). They have an example back-end written in node.js and here is one for Rails. It's simple to understand and persistence.sync is well documented.
Look at the offline cache:
http://www.webreference.com/authoring/languages/html/HTML5-Application-Caching/
http://www.google.com/search?q=offline+cache+html5
http://www.slideshare.net/search/slideshow?q=offline+cache

build a tcp server to test asihttp

I am working on iphone networking application.. I am using asihttp , a wrapper of the CFnetwork framework. http://allseeing-i.com/ASIHTTPRequest/
I want to build a server that sends some data on request from the client... I want this for the sole purpose of testing the application i write and understanding the networking more deeply..
Any help is appreciated
Thank you
Seems like the most straight forward solution is to setup an Apache HTTPD server and just put a static document at the location you want your data to come from.
The two most simple approaches that come to mind:
Enable Web Sharing on your Mac. You can then access the documents in your Sites directory inside your home directory. The Sharing preference pane will tell you the exact URL.
If static content is not enough, write a little Python web server to serve content. Python comes with standard HTTP Server modules. You can get stuff going with like half a dozen of lines of code.