Skip to content

Instantly share code, notes, and snippets.

@andrerds
Created August 20, 2021 23:01
Show Gist options
  • Select an option

  • Save andrerds/e259fc3906dae8cab79b1a553a8ff7ed to your computer and use it in GitHub Desktop.

Select an option

Save andrerds/e259fc3906dae8cab79b1a553a8ff7ed to your computer and use it in GitHub Desktop.
Running an ionic 4 Capacitor project in livereload mode
"server":{
"url":"http://192.168.0.250:8100"
}
ionic capacitor run android -l --address=192.168.0.250
<!-- android/app/src/main/AndroidManifest.xml -->
<application
android:networkSecurityConfig="@xml/network_security_config"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<!-- android/app/src/main/res/xml/network_security_config.xml -->
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">192.168.0.250</domain>
</domain-config>
</network-security-config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment