APK Debug vs APK Realease. Does not consume webservice, does not work database operations

1

I have a problem. I have my mobile app in android studio. The APK generated in DEBUG mode works correctly consuming web services and performing operations on the local database on android. All permissions are correctly configured. But when the APK Release is generated, the consumption of the web services and the operations on the database do not work. I could not detect the problem. Someone who can help me?

Thank you very much!

    
asked by Cristian Camilo Correa Grajale 31.10.2016 в 20:54
source

2 answers

1

This should not be a signature problem,

  

The signature of your .APK is necessary to be identified as a   application for the PlayStore, but it does not modify the permissions or the operation of your application.

Definitely the problem must be another one, I suggest you from experience review the url of the Web Service when you sign your application to production, as well as the credentials it requires.

    
answered by 31.10.2016 в 21:06
0

Hello, you've already tried adding the manifiest

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

also set the optimization option in the buildtypes to false:

  buildTypes {
    release {
    minifyEnabled true
    useProguard false
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  }

  debug {
     applicationIdSuffix ".debug"
  }
}
    
answered by 13.11.2017 в 14:00