0

I have developed an app using React-Native and I put that to Google Store also. But still there is an issue for some devices. Some devices cannot connect to the server while other devices are working fine.

I have generated multiple APKs and uploaded to the store. Still the issue exists. I have put the code in android/app/build.gradle and I wonder all the device types are included. And should I generate the Universal APK too?

splits {
    abi {
    reset()
    enable enableSeparateBuildPerCPUArchitecture
    universalApk false
    include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
    }
}

1 Answers1

0

I really recommend to purchase certificate, even if it's free one, but for now you can change your AndroidManifest like this:

<manifest 
  xmlns:tools="http://schemas.android.com/tools">

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

    <application
      android:usesCleartextTraffic="true" tools:targetApi="28"> 
    ... 
    </application>
</manifest>
Leo Odishvili
  • 1,004
  • 1
  • 7
  • 29