Run web service in smartphone

I do web service that brief recover database data I test this mobile application web service devélopepr by ionic in localhost it works but when it install mobile application on the smartphone web service does not work
what is the solution to run smartphone web service