I followed all the steps to publish apk on play store. But getting error 10 after installing from play store. But When I install released apk from my computer to android mobile it is working fine.
Steps followed to create apk -
Step 1: Created build release ionic Cordova project using below command -
ionic cordova build android --prod --release
After this i got unsigned apk("../../platforms/android/build/outputs/android-release-unsigned.apk").
Step 2: I signed the apk using java keytool command -
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ../../release-key.keystore ../../platforms/android/build/outputs/android-release-unsigned.apk keystore-alias
Step 3: Also verified the signature by using java tool -
jarsigner -verify -verbose -certs ../../platforms/android/build/outputs/android-release-unsigned.apk
Got a messag in command window "Signature verified".
Step 4: Then used zipalign tool of "Android SDK" to align/optimize the apk, command is as below -
zipalign -v 4 ../../platforms/android/build/outputs/android-release-unsigned.apk ../../platforms/android/build/outputs/ToDo.apk
Step 5: Published the apk to "https://play.google.com".
After Some couple of hours published apk was listed on Google PlayStore. I installed it from Google PlayStore on my android mobile and getting error 10.
Steps followed to get SHA-1 Key -
Step 1: Keystore file is created using java keytool command -
keytool -genkey -v -keystore ../release-HMC.keystore -alias release-key -keyalg RSA -keysize 2048 -validity 10000
Step 2: Got SHA-1 Key by using below command -
keytool -list -v -keystore ../release-HMC.keystore -alias release-key
Step 3: Enabled the Google Sign-in from "https://developers.google.com/mobile/add?platform=android&cntapi=signin"
And I also enabled "Google+ API" on Google Console("https://console.developers.google.com/apis/").
What i did wrong please Help !