Forge Component
(6)
Published on 2017-07-06 by Labs
6 votes
Published on 2017-07-06 by Labs

Hello,


i'm trying to make login with this component, and i'm always geting the Error 10.


Any clue what is this error?



Best regards,

PVN

Pedro Vila Nova wrote:

Hello,


i'm trying to make login with this component, and i'm always geting the Error 10.


Any clue what is this error?



Best regards,

PVN

Hi Pedro,

  1. generate your private key
    $ keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

  2. get SHA1 from the key that you generated above
    $ keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore

  3. use that SHA1 here to get all your necesarry token, IDs or keys --> https://developers.google.com/mobile/add?platform=android&cntapi=signin 549

  4. release build your app to generate an unsigned apk file
    $ cordova build android --release

  5. jar sign that apk file with the above keystore
    $ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore HelloWorld-release-unsigned.apk alias_name

Reference:
http://ionicframework.com/docs/v1/guide/publishing.html



Regards,

Eduardo Benites

Solution

Hi Eduardo,


Thank you for your reply.


It was a noob problem, i forgot to configure the keystore.......



Problem Solved...


Best regards,

Pedro Vila Nova

Solution

You're welcome,


Eduardo Benites