Ionic "FAILED_TO_FETCH" in andrid app

I'm using Angular's Ui Kit (CometChat Angular UI Kit v3)  for my project, oriented both for the web, pwa and apps for google and apple stores, but when compiling for android with capacitor 4.7.0 the user is not logged in, checking the error i get "FAILED_TO_FETCH", "There is an unknown issue with the API request. Please check your internet connection and verify the api call.", but there are occasions when compiling it works but other time it doesn't, the permissions were added:

<uses-permission android:name="android.permission.INTERNET" />

<uses-permission android:name="android.permission.CAMERA" />

<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />

<uses-permission android:name="android.permission.RECORD_AUDIO" />

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

As additional information, when the app runs with "ionic serve" it works when it is on the web and pwa, but in android it is when it works some times yes and others not.



Please sign in to leave a comment.