PHP API to use in Xamarin

Asked

Viewed 151 times

1

I am creating an API to create the Mysql connection. Can I use PHP to create this API? Can I normally use this API on iOS? I’ve seen it in many places (example) that I can use this API for Android, but I haven’t seen anyone using it for iOS.

  • Did any of the answers solve your question? Do you think you can accept one of them? Check out the [tour] how to do this, if you haven’t already. You would help the community by identifying what was the best solution for you. You can accept only one of them. But you can vote on any question or answer you find useful on the entire site (when you have enough score).

2 answers

1

You probably still don’t understand what each thing is. PHP will run on the server, it has nothing to do with iOS or Android. Your client will run on these operating systems and communicate with the server via HTTP (probably) and there is the API. REST API is universal.

  • That’s exactly what it was. I didn’t understand it very well! Thank you very much, clarified my doubt.

0


A Rest API serves precisely so that the application can communicate with the database in any client environment, such as IOS or ANDROID.

This way your application will communicate via URL with your API that can be developed in any server language, such as PHP or Ruby.

And you can integrate any application independent of your platform, as long as it can make URL requests, the only drawback is that your application will be internet dependent to communicate with the API.

  • Thanks for the reply Rodolfo! Helped me a lot to understand!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.