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.

Revisions

  1. @nikmartin nikmartin renamed this gist Dec 14, 2019. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @nikmartin nikmartin created this gist Dec 5, 2019.
    9 changes: 9 additions & 0 deletions AndroidManifest.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    <!-- 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">
    3 changes: 3 additions & 0 deletions capacitor.config.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    "server":{
    "url":"http://192.168.0.250:8100"
    }
    1 change: 1 addition & 0 deletions cli
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    ionic capacitor run android -l --address=192.168.0.250
    8 changes: 8 additions & 0 deletions network_security_config.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    <!-- 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>