Skip to content

[v3] signInWithCredential does not return callback #155

Open

Description

@braxtondiggs

I am trying to have the user log in via facebook, I am passing in token data but I am not getting success or failure and firebase is not being updated. I am using latest v3 branch. Using Genymotion emulator with android 6.0.0.

const firestack = Firestack.initializeApp(env.firestack)

firestack.auth().signInWithCredential({
    provider: 'facebook',
    token: data.credentials.token
}).then((user) => {
    //doesn't get called
}).catch((err) => {
    //doesn't get called either
})

Activity

  1. auser commented on Nov 22, 2016

    @auser
    Contributor

    @braxtondiggs Why are you calling const firestack = Firestack.initializeApp(env.firestack) instead of new Firestack({})?

  2. Salakar commented on Nov 23, 2016

    @Salakar
    Collaborator

    @auser that's correct now, same as web api, old way is also supported.

  3. Salakar commented on Nov 23, 2016

    @Salakar
    Collaborator

    @braxtondiggs genymotion emulators don't have Google play services installed by default, which firebase requires. Without it it'll appear to hang.

    I am working on some code to show a warning if it's missing, but in the meantime you just need to install play services, there was a link how to in another issue

  4. Salakar commented on Nov 23, 2016

    @Salakar
    Collaborator

    @braxtondiggs can you pull my fork and try now if possible? If it's missing Play Services it should now show this:

    image

    We'll get this documented on v3 branch.

  5. changed the title [-]signInWithCredential does not return callback[/-] [+][v3] signInWithCredential does not return callback[/+] on Nov 23, 2016
  6. added this to the v3 milestone on Nov 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions