-2

I want to make a web service for android application and only accepts every request that come from my application not other applications like jquery in web and other android applications anyone can help?

6
  • You have to make webservice with some web based technologies such as ASP.NET or PHP. Host it on a server and code your android application webservice calling Commented Jul 5, 2017 at 5:39
  • please clarify: you don't know how to make a web service in general, or don't know how to make your service accept requests only from your app? Commented Jul 5, 2017 at 5:56
  • @Vlad Matvienko I want to accept requests only from my app Commented Jul 5, 2017 at 10:42
  • then use some header or parameter that will identify your app. Like is there is an apiKey=thisisreallymyapp parameter in each request, then it is your app. Commented Jul 5, 2017 at 10:51
  • @Vlad Matvienko This way you say has a bug and if someone know the app request can send request to server from every where that possible Commented Jul 11, 2017 at 18:22

1 Answer 1

1

Build a Simple REST API for Mobile Applications using PHP or .Net.. PHP such Laravel already have API configuration and REST APi Authenticate in it can be simply setup..

enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

thanks for your answer but I want to accept requests only come from my app

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.