Google Login

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #44133

    Dante
    Participant

    Hi
    after adding google login it wont wok

    I created a firebase project
    Added a project for android
    added package name based off confix.xml
    generated SH-1 and etc
    I also placed the google service.json in those directories

    Should I sign the build apk with SH key file at the end?
    is there any specific tutorial for this

    Please help

    #44191

    Harry
    Spectator

    Hello

    Generate the sha1 and place in your google firebase console project http://prntscr.com/r06dg5  and then download the google.service.json file reverse this http://prntscr.com/r06f0p

    ionic Cordova plugin add [email protected] –variable REVERSED_CLIENT_ID=com.googleusercontent.apps.sa4eup240iae2sac48kcmkb623jp0g4v-619318875199

    Place the reverse client id in the google plugin login command http://prntscr.com/r06g60

    ionic cordova build –release android

    jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore  wplms.keystore app.aab wplms

    C:\Users\99fus\AppData\Local\Android\Sdk\build-tools\29.0.2\zipalign.exe  -v 4 app-release-unsigned.apk wplms.apk

    Follow the above doc for adding the google login.

    #44194

    Dante
    Participant

    so this is the summary!

    1.go to Fire Base console and create a project add an android app
    2. place the package name there and SHA1 ( we can use debug.keystore or ouwn own generated .keystore )
    3. download the google.service.json and place in platform/android app and root
    4. run command to add Reverse Client ID
    5. build the app
    6.sign the app with the keystore we have taken the SHA1 with jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore wplms.keystore app.aab wplms
    7.zipalign the app

    are you sure the right patter for reverse the client ID you used?

    URLscheme = “com.googleusercontent.apps.xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”

    as this website :
    https://stackoverflow.com/questions/39682621/reverse-google-client-id-with-swift/39691166

    #44223

    Harry
    Spectator

    Hello

    Follow this doc for finalizing the app http://bit.ly/31M52Wd

    Reference: http://prntscr.com/r0oz0i

    #44632

    Dante
    Participant

    #Thank you very much I followed it it went all ok but when I try to install the apk it say:

    ” installation app blocked by play protect ”

    and Google sign in works with some legacy devices I mean just on old android

    Aftrer running Gen key command it ask me to connvert .JSK to standard format , should I do that?

    #44674

    Harry
    Spectator

    Hello

    Before installing the app in your android device.go to play store>Play Protect and disable this http://prntscr.com/r4f182

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.