I am developing an mobile application for android using Ionic and Web Api.
The application working fine when I run this app on the browser emulator but when I trying to deploy on real device it gives me an error login failed.
In app.js
angular.module('starter', ['ionic', 'starter.controllers', 'starter.services', 'services.hub', 'ngStorage', 'angularUUID2', 'ui.bootstrap', 'roy.signalr-hub','angularMoment'])
.constant('/api', {
url: 'http://ipAddress/api'
})
ionic.project file
{
"name": "ChatApp",
"app_id": "",
"proxies": [
{
"path": "/api",
"proxyUrl": "http://ipAddress/api"
}
]
}
Having an login screen click on login should be happen. I am not able to debug the code using real device also.