I am to build java based web app and want it to be compatible with all devices like mobile, iOS, iPad and PC. But i know only to create apps either for PC or mobile but have no idea how can one site work for both.
Below are the possible solution which i can think of :
1. Making site web responsive - it will resolve view issue but not sure how it will handle other issues?
2. Creating API for application, and creating different initial classes for mobile devices and pc , then calling same from these 2 different classes.
Please let me know if it makes sense or please suggest better way to do it.