Search code examples
androidapk

My app won't connect to server after published in play store


I just published my app to play store and have a huge issue: APK published by google's store won't connect to my server. If I install the same .apk in my phone it works fine, but after googles processing the .apk and put it on play store it stops working. Have no idea even how to start to debug this. Any help or advice?


Solution

  • The first thing that comes to mind is to check the permissions for your app. If you tested it on your phone it is possible that you took for granted that it could connect to the internet because you wanted it to. So I would check again the manifest file to make sure you added that permission for the internet.

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

    You can find something useful here : Android connect to the network

    As a second step in a debug process I would check my code for the connection to the server. What are you using as a backend? Firebase? If you want to share more, I'll try to help.

    Update The problem was solved by disabling "minifyEnabled" and "shrinkResources".