How can I make a mobile app that connect with my web app and share the same database?

You’ll need to write an API which both the web app and mobile app talk to. Depending on how your backend is already set up, if you’re using a language like PHP or Ruby on Rails, there are a lot of gems and tools you can use to get your API set up.

One thing I recommend: when building an API, you’ll want to make sure you provide a way to authenticate against it (which will protect your user’s data as well as fight againt spam). This is commonly done by setting up some kind of token-based auth system whereby you send a token up with every request and verify that the token is valid.

Exactly the same way that opening two web pages showing your Amazon orders shows the same list:

Make the same calls to the same database, using the same API.

It really is that simple.

You probably just need to learn how to make the calls.

You should use webservices, using for example json. You realize the app with xamarin, the bbdd with MySQL, sql server, some PHP files that connect to the database and retrieve data. From the c# files in the xamarin app, you will open php files, and that's all.

REST api. Connect the Mobile app to the database of the Web app using REST api. Both should share the same resource

You can definitely use the same database to run a mobile application and a website. The current state of the art, is creating a set of web services (REST API) to hide the implementation (provide Abstraction) of the database from both the Website and the Mobile Apps.

After you define and build your API you can test it and see that it works. You can then make your website and mobile apps connect to the API to get and save data.

There are a few services that make this a little bit easier if you don’t want to do it all yourself. Take a look at Parse Server (open source) and Firebase (Not open source

You can definitely use the same database to run a mobile application and a website. The current state of the art, is creating a set of web services (REST API) to hide the implementation (provide Abstraction) of the database from both the Website and the Mobile Apps.

After you define and build your API you can test it and see that it works. You can then make your website and mobile apps connect to the API to get and save data.

There are a few services that make this a little bit easier if you don’t want to do it all yourself. Take a look at Parse Server (open source) and Firebase (Not open source but run by Google).

Best of luck!

Akshay Narula's answer to I want my Android app to fetch data from an external WebApp. How should I go about it?

We generally develop an API. An API is a backend part that is usually developed in server side language say NodeJS. The API connects with the database and send response as JSON object. The client can now make http request to an API from any mobile device as they all support to make http requests. The API processes the request and returns the response to the client in JSON format. Client interprets the JSON and render the information to client. Web APIs are generally the RESTful APIs and they do not require the backend and front end to be written in same language. So API written in java could b

We generally develop an API. An API is a backend part that is usually developed in server side language say NodeJS. The API connects with the database and send response as JSON object. The client can now make http request to an API from any mobile device as they all support to make http requests. The API processes the request and returns the response to the client in JSON format. Client interprets the JSON and render the information to client. Web APIs are generally the RESTful APIs and they do not require the backend and front end to be written in same language. So API written in java could be accessible to a app written in swift or objective c or android