Getting server not connected when i run my APP in my device

I created an app using ionic framework its work finw when I tried in Android 5 moto. But when I tried in Samsung Android 4.4. I am getting pop-up error as server not connected. Please help to fix this issue. It will occurs some times only while launching the app