sp-react-native-in-app-updates
sp-react-native-in-app-updates copied to clipboard
Installation always giving error status:5
This is what i am getting everytime during installation
download status {"bytesDownloaded": 0, "status": 11, "totalBytesToDownload": 0}
download status {"bytesDownloaded": 0, "status": 3, "totalBytesToDownload": 0}
download status {"bytesDownloaded": 0, "status": 5, "totalBytesToDownload": 0}
Please look into this
Device : Realme1, OS Type : Android 9, Package version : sp-react-native-in-app-updates: "^1.1.7",
same here
@Lekhrajk @rvuyyuru1 did you manage to solve this issue?
no
If anybody else faces this issue, check that the version the application tries to update to has a matching signature with the updating app.
My issue was that the test app tried to update to a production version in Playstore, which used a Google generated signature. This caused the signatures to not match, and the PackageManager ignored the application, and the installation failed.
If anybody else faces this issue, check that the version the application tries to update to has a matching signature with the updating app.
My issue was that the test app tried to update to a production version in Playstore, which used a Google generated signature. This caused the signatures to not match, and the PackageManager ignored the application, and the installation failed.
This is correct. I just explain more about the way you can test your app. Clearly that you can not just react-native run-android and react-native start to run the local test app like normal. Moreover, you can not build the apk with your custom keystore (custom signingConfigs) which you used to build the abb file and uploaded it to chplay. Because when you upload abb to play.google.com, google signs your abb file with another keystore. So you still get status 5 in the apk that you build.
The solution that using the internal testing in the google play console with the same account that you use to deploy your app.
You may know how to use it. This is the way that I do for someone who doesn't familiar. Generate the abb with a lower version code in the android>app>build.grapdle>versionCode (example: 1) for the internal testing and install it manually on your phone. After changing something in your app to see the difference and increase the version code (example: 2) then upload it to the internal testing. You may need to wait a few minutes.