Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49166

How to ionic run android -l -c?

$
0
0

@jf1 wrote:

Hello and thanks for ionic.

I would to know how to develop android with livereload :

here my process:

[:slight_smile:] $ ionic start mytest
[:slight_smile:] $ ionic platform android
[:slight_smile:] connect an android device by usb (Samsung)
[:slight_smile:] adb devices : find device
[:slight_smile: ] ionic run android
[:fearful:] ionic run android -l -c

Application Error
There was a network error. (http:// 192.168.1.x:8100/)

as topic say https://forum.ionicframework.com/t/ionic-run-android-livereload-not-working-ionic-2/44800

[:slight_smile: ] ionic plugin add https://github.com/apache/cordova-plugin-whitelist.git

[:fearful:] Same prompt come.

I suppose i would be good on ionic 2 but not with ionic 1.

So i open the config.xml and add 2 rules :

allow-navigation href="http://localhost:8100/*"
allow-navigation href="http://192.168.1.x:8100/*"

perhaps not the good ones ?

[:fearful:] Same prompt come.

as say http://blog.ionic.io/handling-cors-issues-in-ionic/ it's probably a CORS issue.

Yep but myTest make no send request yet

Hope someone to help

using : CLI 1.7.16

Best regards

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49166

Trending Articles