Facebook Login Only Works when Phone is plugged to USB


#1

Hi guys, I have a very strange problem…
I’m using ngCordovaFacebookLogin in my app, and it works perfect when I test it on my Android cellphone and it’s plugged to the computer. But when I test it unplugged, the Facebook Login Fails and I can’t see any error, it just reloads the login screen and if I press Back several times I get an error page saying that it couldn’t reach http://localhost/callback.
Agan, It’s very strange, and it works OK plugged to the USB port with ionic run android --device…
Any clue?
Thanks!