Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova Android app has no internet access on SOME devices

I ran into a strange problem and I can't find any solution how to fix it.

On some devices (not all), the app has no internet access. I can't reproduce the problem with any emulator configuration.

The list of devices with problems: - Galaxy S6 Edge, Android 5.0 - Galaxy S5, Android 5.0 - Galaxy Note, Android 4.1 - TrekStor tolino tab 8.9, Android 4.2 - Xperia L, Android 4.2

Anyone else there with such a strange problem? And please remember, only SOME devices has the problem, must of the installations runs as expected.

In the config.xml:

<access origin="*" />

In my manifest the settings are correct:

<uses-permission android:name="android.permission.INTERNET" />
like image 798
Stephan Beutel Avatar asked Dec 12 '25 22:12

Stephan Beutel


1 Answers

finally I solved the problem.

In config.xml I had a min. Android version included

<preference name="android-minSdkVersion" value="15"/>

which corrupted my Android build. After removing this, the app runs fine on all devices.

like image 185
Stephan Beutel Avatar answered Dec 16 '25 00:12

Stephan Beutel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!