Allow HTTP (non secure) requests in Android app

This commit is contained in:
Laura Neto
2025-10-19 19:22:30 +02:00
parent 04314d507b
commit 7f65ce0e84
2 changed files with 5 additions and 2 deletions

View File

@@ -6,7 +6,8 @@
android:label="@string/app_name" android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round" android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/AppTheme"> android:theme="@style/AppTheme"
android:usesCleartextTraffic="true">
<activity <activity
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
android:name=".MainActivity" android:name=".MainActivity"

View File

@@ -4,7 +4,9 @@ const config: CapacitorConfig = {
appId: 'com.donetick.app', appId: 'com.donetick.app',
appName: 'Donetick', appName: 'Donetick',
webDir: 'dist', webDir: 'dist',
android: {
allowMixedContent: true,
},
plugins: { plugins: {
PushNotifications: { PushNotifications: {
presentationOptions: ['badge', 'sound', 'alert'], presentationOptions: ['badge', 'sound', 'alert'],