How to check that a web page is running in safari mode with address bar or in app mode without address bar in iPad
By in app mode I assume you mean when it's launched from the home screen:
if (window.navigator.standalone) { /* Launched from home screen code */ }
This works on all iOS devices ASAIK.