Ah, this is when you come to need a Web API and a client! Since most of your content in the post is mobile-app oriented. This means you want to use the data from your website in the mobile as a native application rather than HTML content being loaded using the old default browser. I think I got you right, on your point.
Anyways, ASP.NET MVC 5 and MVC 6 they support Web APIs that you can consume through clients using an
HttpClient
. Every language or framework has it, and you can use them to send the requests to the API to get response back in
JSON format. Note that I would also recommend that you use JSON format instead of XML because of its compact size. :-)
I have never built any application using PhoneGap (or any other framework that claims to build "
native applications in HTML, CSS and JavaScript") but since they claim, they will provide you with all the tools that a programming language such as C# or C++ provides.
First stage would be to create an API. In ASP.NET (MVC 5 and MVC 6) you can create the API, using
ApiController
[
^] in MVC 5 for Web API 2 and in MVC 6 (
ASP.NET 5[
^]) you can use a
Controller
for API and use the routes to configure where user can call it from, such as
[Route("/api/[controller]")]
. The rest is just the action methods that you use.
I have an article written for ASP.NET 5's Web API, if you are interested:
Consuming ASP.NET 5 Web API with CRUD functions in Windows 10 native application[
^]
As for the client-side, you can surely built applications in PhoneGap and then use Google to get the results for HttpClient and other stuff in that framework. One of the community thread about this discussion is:
http://community.phonegap.com/nitobi/topics/can_you_do_http_requests_with_phonegap[
^] which claims that HTTP requests can be sent using the
XmlHttpRequest
[
^] object of JavaScript.
That was pretty much expected. :sigh:
You can then use the data returned from the API to be used in AngularJs for rendering purposes. So, that is how you are going to make up this project! :-)